mirror of https://github.com/i2p-zero/i2p-zero
Now doesn't require any Ubuntu packages to be installed in order to build (java, ant, i2p). Produces a distribution with zero dependencies.
parent
385917a7f4
commit
1437610e5b
@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
basedir=$(dirname $(dirname $(readlink -fm $0)))
|
||||
|
||||
# retrieve the I2P Java sources, OpenJDK and the Ant build tool
|
||||
$basedir/bin/import-packages.sh
|
||||
|
||||
# build the i2p project retrieved from the I2P repository
|
||||
$basedir/bin/build-original-i2p.sh
|
||||
|
||||
# convert the imported JARs to modules, compile the Java source code in this project, and then use the jlink tool
|
||||
# to build a zero-dependency platform-specific launcher
|
||||
$basedir/bin/build-launcher.sh
|
@ -0,0 +1,27 @@
|
||||
#!/bin/bash
|
||||
|
||||
basedir=$(dirname $(dirname $(readlink -fm $0)))
|
||||
|
||||
cd $basedir/import
|
||||
|
||||
export JAVA_HOME=`realpath $basedir/import/jdk-11.0.2`
|
||||
|
||||
|
||||
# build the jars we're going to modularize
|
||||
cd $basedir/import/i2p.i2p
|
||||
$basedir/import/apache-ant-1.10.5/bin/ant pkg
|
||||
$basedir/import/apache-ant-1.10.5/bin/ant updaterWithJbigi
|
||||
cd ..
|
||||
|
||||
|
||||
# copy the jars that we're going to modularize
|
||||
mkdir -p $basedir/import/lib
|
||||
for i in i2p.jar mstreaming.jar router.jar sam.jar streaming.jar; do cp $basedir/import/i2p.i2p/build/$i $basedir/import/lib/; done
|
||||
|
||||
# build a minimal i2p.base dir
|
||||
mkdir -p $basedir/import/i2p.base
|
||||
cp $basedir/import/i2p.i2p/build/jbigi.jar $basedir/import/i2p.base/
|
||||
for i in blocklist.txt hosts.txt certificates; do cp -r $basedir/import/i2p.i2p/installer/resources/$i $basedir/import/i2p.base/; done
|
||||
|
||||
mkdir -p $basedir/import/i2p.base/geoip
|
||||
for i in continents.txt countries.txt; do cp -r $basedir/import/i2p.i2p/installer/resources/$i $basedir/import/i2p.base/geoip/; done
|
@ -0,0 +1,14 @@
|
||||
#!/bin/bash
|
||||
|
||||
basedir=$(dirname $(dirname $(readlink -fm $0)))
|
||||
|
||||
mkdir $basedir/import
|
||||
cd $basedir/import
|
||||
|
||||
git clone https://github.com/i2p/i2p.i2p.git
|
||||
|
||||
wget https://download.java.net/java/GA/jdk11/7/GPL/openjdk-11.0.2_linux-x64_bin.tar.gz
|
||||
wget https://www-us.apache.org/dist//ant/binaries/apache-ant-1.10.5-bin.tar.gz
|
||||
|
||||
tar zxvf openjdk-11.0.2_linux-x64_bin.tar.gz
|
||||
tar zxvf apache-ant-1.10.5-bin.tar.gz
|
@ -0,0 +1,5 @@
|
||||
#!/bin/bash
|
||||
|
||||
basedir=$(dirname $(dirname $(readlink -fm $0)))
|
||||
|
||||
$basedir/bin/java -cp $basedir/i2p.base/jbigi.jar -m org.getmonero.i2p.embedded --i2p.dir.base=$basedir/i2p.base --i2p.dir.config=$basedir/i2p.config
|
Loading…
Reference in new issue