Skip to content
This repository has been archived by the owner on Sep 9, 2023. It is now read-only.

Commit

Permalink
added instructions to build the project on VSCode
Browse files Browse the repository at this point in the history
  • Loading branch information
marelct committed Mar 25, 2023
1 parent 2278481 commit 8f3986a
Showing 1 changed file with 11 additions and 2 deletions.
13 changes: 11 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,7 @@ To compile the program yourself, some libraries are needed:

Download them and put them somewhere.

This program is compiled with IntelliJ, so I don't know how to compile it outside of IntelliJ.
Anyway, follow the steps:
This program is compiled with IntelliJ, here are the steps to follow if you're using it:
1. Download the repository by `git clone` or downloading as ZIP and extract it.
2. Launch IntelliJ IDEA if you haven't.
3. Open the directory where the files are extracted into.
Expand All @@ -79,6 +78,16 @@ Anyway, follow the steps:
10. In the little window, choose Build.
11. The `.jar` file should be built inside `out/artifacts`.

Steps to follow if you're using VSCode:
1. Open VSCode, make sure you have the `Extension Pack for Java` installed.
2. Download the repository by going on the left panel->Source Control->Clone Repository and paste the git clone link.
3. Create a new folder in the root directory and call it lib.
4. Download and extract all the necessary libraries, then put the jar files in the lib directory.
5. Press ctrl+shift+p and search for `Tasks:Configure Default Build Task`, select buildArtifact.
6. Copy and substitute this: `"targetPath": "${workspaceFolder}/out/artifacts/curseforge-cli.jar"`.
7. Press ctrl+shift+b OR ctrl+shift+p and search for `Tasks:Run Build Task` to build.
8. The `.jar` file should be built inside `out/artifacts`.

## Support
If you want to support me, please consider becoming [my Patron](https://www.patreon.com/nww).

Expand Down

0 comments on commit 8f3986a

Please sign in to comment.