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

Commit

Permalink
Merge pull request #21 from marelct/main
Browse files Browse the repository at this point in the history
added instructions to build the project on VSCode
  • Loading branch information
North-West-Wind authored Apr 6, 2023
2 parents ea3cb09 + 8f3986a commit 3e5a491
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -59,14 +59,13 @@ Installing a modpack will also generate a profile. However, the profile doesn't

## Compiling
To compile the program yourself, some libraries are needed:
- [Apache Commons IO](https://commons.apache.org/proper/commons-io/)
- [jansi](https://github.com/fusesource/jansi)
- [JSON Simple](https://code.google.com/archive/p/json-simple)
- [Apache Commons IO](https://commons.apache.org/proper/commons-io/download_io.cgi)
- [jansi](https://fusesource.github.io/jansi/download.html)
- [JSON Simple](https://code.google.com/archive/p/json-simple/downloads)

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 3e5a491

Please sign in to comment.