From 8f3986ac21cc9e4031d61d256f0dc686b5323042 Mon Sep 17 00:00:00 2001 From: marelct Date: Sat, 25 Mar 2023 21:44:58 +0100 Subject: [PATCH] added instructions to build the project on VSCode --- README.md | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 370e775..28db22c 100644 --- a/README.md +++ b/README.md @@ -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. @@ -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).