...
- In the /install-files/ folder, create a folder called jre1jrex.8x.0x_20x. 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:
Code Block language bash jre1jrex.8x.0x_20x-<platform>/ └── java-<platform>/ ├── bin/ │ ... └── lib/ ...
From each of the zips, copy the
java-<platform>
folder into/install-files/jre1jrex.8x.0x_20x/
Your folder structure should look like:Code Block . └── install-files/ ├── icons/ ├── images/ └── jre1jrex.8x.0x_20x/ ├── java-linux/ │ ├── bin/ │ └ ... ├── java-linux-x64/ ├── java-osx/ ├── java-windows/ └── java-windows-x64/
Edit the java.xml file to update the jre version. The jre version is throughout the file. So its best to use a text editor that can do a search and replace.
Code Block language xml title install-files/java.xml <distributionFileList> <distributionFile> <allowWildcards>1</allowWildcards> <origin>install-files/jre1.8.0_25/java-windows/*</origin> </distributionFile> </distributionFileList>
For instance, if the jre version is upgraded to jre1.8.0_26, use the following command with vim.
Code Block language bash title VIM search & replace %s/jre1.8.0_25/jre1.8.0_26
- 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:Code Block . ├── 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!
...