This article is intended for the NautDrafter maintainer and explains how to generate the installer for each platform.
Setup
The installer files are hosted on Bitbucket in the nautdrafter-installer repo, which you'll need to clone to your local machine. You will need to be a member of the NautDrafter team to access the repo.
Once the repo has been cloned, there are a few more files that must be added:
- In the /install-files/ folder, create a folder called jre1.8.0_20. This will hold the Java Runtime for each platform.
- Download the latest JREs zips from the BitRock website. You'll need:
- JRE Windows
- JRE Windows x64
- JRE Linux
- JRE Linux x64
- JRE Mac OS X
Each of these zips will be structured like:
jre1.8.0_20-<platform>/ └── java-<platform>/ ├── bin/ │ ... └── lib/ ...
From each of the zips, copy the java-<platform>folder into /install-files/jre1.8.0_20/
Your folder structure should look like:. └── install-files/ ├── icons/ ├── images/ └── jre1.8.0_20/ ├── java-linux/ │ ├── bin/ │ └ ... ├── java-linux-x64/ ├── java-osx/ ├── java-windows/ └── java-windows-x64/
- Download the latest JREs zips from the BitRock website. You'll need:
- The NautDrafter compiled distributable must also be added.
- In the main NautDrafter repo (cloned from https://bitbucket.org/nautdrafter/nautdrafter), run
./gradlew distZip
(in the root directory). This will generate zip files in<project>/build/distributions/<project>.zip
. Extract
to the root of the installer repo.<main-nautdrafter-repo>/NautDrafter/build/distributions/NautDrafter.zip
You should now have the following folder structure:. ├── install-files/ │ ├── icons/ │ ├── images/ │ └── jre1.8.0_20/ └── NautDrafter/ ├── assets/ ├── bin/ ├── bundles/ ├── lib/ └── style/
- In the main NautDrafter repo (cloned from https://bitbucket.org/nautdrafter/nautdrafter), run
- You are now ready to generate an installer!
In the root of the repo is a file called nautdrafter-installer-tidy.xml - this is the BitRock Install Builder config file that all the installers are generated from.