Work on jpackage detailed build instructions
This commit is contained in:
41
README.md
41
README.md
@ -117,6 +117,47 @@ with a non-fatal warning.
|
||||
In the near future, I'll start providing a pre-built app image to ease the
|
||||
build process for non-Windows users.
|
||||
|
||||
End-to-End Windows build process using Cygwin
|
||||
---------------------------------------------
|
||||
|
||||
**Prerequisites:** You need to have OpenJDK 14 or greater installed and configured
|
||||
with your `%JAVA_HOME%` environment variable configured and `%JAVA_HOME%/bin` on
|
||||
your `%PATH%`. You need to have Apache Ant installed and configured with `%ANT_HOME%`
|
||||
environment variable configured and `%ANT_HOME%/bin` on your `%PATH%`. You must have
|
||||
Cygwin installed. You must have `NSIS.exe` installed and available on your `%PATH%`.
|
||||
You must have Git for Windows installed. When installing git for Windows
|
||||
|
||||
1. Run the Cygwin `setup-$arch.exe` for your platform to set up new packages.
|
||||
Select the `make` `jq` `dos2unix` and `curl` packages.
|
||||
2. Open a cygwin terminal.
|
||||
3. Clone `i2p.i2p` and `i2p.firefox`
|
||||
|
||||
git clone https://github.com/i2p/i2p.i2p
|
||||
git clone https://github.com/i2p/i2p.firefox
|
||||
|
||||
3. Move to the i2p.i2p directory. Build the .jar files required to build the App Image
|
||||
inside i2p.i2p. Return to home.
|
||||
|
||||
cd i2p.i2p
|
||||
ant updater
|
||||
cd ..
|
||||
|
||||
4. Move into the i2p.firefox directory. Copy the .jar files from the `i2p.i2p/pkg-temp/lib`
|
||||
directory into the build directory. Export a legal(For Windows jpackages) version
|
||||
number. Build the App Image.
|
||||
|
||||
cd i2p.firefox
|
||||
mkdir -p build
|
||||
cp -R ../i2p.i2p/pkg-temp/lib build/lib
|
||||
export I2P_VERSION=0.9.49
|
||||
$JAVA_HOME/bin/jpackage --type app-image --name I2P --app-version "$I2P_VERSION" \
|
||||
--verbose \
|
||||
--resource-dir build/lib \
|
||||
--input build/lib \
|
||||
--main-jar router.jar --main-class net.i2p.router.RouterLaunch
|
||||
|
||||
|
||||
|
||||
Issues
|
||||
------
|
||||
|
||||
|
@ -1,3 +1,4 @@
|
||||
#! /usr/bin/env sh
|
||||
|
||||
curl -s https://addons.mozilla.org/api/v5/addons/addon/$1/versions/?page_size=1 | jq '.results | .[0] | .version' | tr -d '"'
|
||||
curl -s "https://addons.mozilla.org/api/v5/addons/addon/$1/versions/?page_size=1" | jq '.results | .[0] | .version' | tr -d '"'
|
||||
|
||||
|
Reference in New Issue
Block a user