From 76f4232c96bce6caa7692a25567a3c044aa2d53e Mon Sep 17 00:00:00 2001 From: sk89q Date: Fri, 24 Jul 2015 01:19:43 -0700 Subject: [PATCH] Created Command Line Tools (markdown) --- Command-Line-Tools.md | 31 +++++++++++++++++++++++++++++++ 1 file changed, 31 insertions(+) create mode 100644 Command-Line-Tools.md diff --git a/Command-Line-Tools.md b/Command-Line-Tools.md new file mode 100644 index 0000000..877d096 --- /dev/null +++ b/Command-Line-Tools.md @@ -0,0 +1,31 @@ +You can build modpacks via command line tools as well. + +## Building Modpacks + +1. From the `launcher-builder/build/libs/` folder, copy `launcher-builder-X.Y.Z-SNAPSHOT-all.jar` to your modpack's folder. +2. Open terminal or command prompt and navigate to the directory of your modpack. + * Windows users: Hold down your SHIFT key, right click the folder that contains "modpack.json", and click "Open command window here". +3. Run the following command (note: **put it on one line**, and change "X.Y.Z" to the right version): + +``` +java -jar launcher-builder-X.Y.Z-SNAPSHOT-all.jar + --version "pick_a_version" + --input . + --output upload + --manifest-dest "upload/your_modpack.json" +``` + +* "version" is the version of your modpack and it doesn't have to be a number -- whenever you want to push an update, you have to change the version code to anything else that has never been used before +* "input" is the folder with "loaders," "src," and "modpack.json" -- `.` means "the current folder" +* "output" is the folder to put the output +* "manifest-dest" is the manifest file that is generated + +![Command Prompt](http://i.imgur.com/Nt7nCHV.png) + +There should be a `upload/` folder now with the generated files. + +![Generated Files](http://i.imgur.com/LLkHRSk.png) + +## Generating a Package Listing + +There is no command line tool to do this. However, the format of packages.json is pretty simple so you should be able to generate it yourself easily. \ No newline at end of file