mirror of
https://github.com/wownero/i2p-zero.git
synced 2026-10-17 23:31:42 +02:00
fixed Mac app
This commit is contained in:
@@ -58,7 +58,7 @@ or `dist/linux/router/bin/launch-gui.sh`
|
||||
To run the MacOS router, type:
|
||||
|
||||
`dist/mac/router/bin/launch.sh`
|
||||
or `dist/mac/router/bin/launch-gui.sh`
|
||||
or run the app located in `dist/mac/router-app/i2p-zero.app`
|
||||
|
||||
For Windows, run:
|
||||
|
||||
|
||||
+8
-13
@@ -43,25 +43,15 @@ for i in linux mac win; do
|
||||
$JAVA_HOME/bin/jlink --module-path ${JAVA_HOME_VARIANT}/jmods:import/javafx-jmods/$i/javafx-jmods-${JAVAFX_VERSION}:target/modules:target/org.getmonero.i2p.zero.jar:target/org.getmonero.i2p.zero.gui.jar --add-modules org.getmonero.i2p.zero,org.getmonero.i2p.zero.gui,javafx.controls,javafx.fxml,java.desktop --output dist/$i-gui/router --strip-debug --compress 2 --no-header-files --no-man-pages
|
||||
done
|
||||
|
||||
cp -R $basedir/resources/i2p-zero.app $basedir/dist/mac-gui/router/bin/
|
||||
|
||||
for i in linux mac linux-gui mac-gui; do
|
||||
if [ $i = mac-gui ]; then
|
||||
mac_root=$basedir/dist/$i/router/bin/i2p-zero.app/Contents/MacOS
|
||||
cp $basedir/resources/tunnel-control.sh $mac_root/
|
||||
mv $basedir/dist/$i/router/bin/java $mac_root/
|
||||
mv $basedir/dist/$i/router/bin/jrunscript $mac_root/
|
||||
mv $basedir/dist/$i/router/bin/keytool $mac_root/
|
||||
else
|
||||
cp $basedir/resources/launch.sh $basedir/dist/$i/router/bin/
|
||||
cp $basedir/resources/tunnel-control.sh $basedir/dist/$i/router/bin/
|
||||
fi
|
||||
cp $basedir/resources/launch.sh $basedir/dist/$i/router/bin/
|
||||
cp $basedir/resources/tunnel-control.sh $basedir/dist/$i/router/bin/
|
||||
done
|
||||
for i in win win-gui; do
|
||||
cp $basedir/resources/launch.bat $basedir/dist/$i/router/bin/
|
||||
done
|
||||
|
||||
for i in linux-gui; do
|
||||
for i in linux-gui mac-gui; do
|
||||
cp $basedir/resources/launch-gui.sh $basedir/dist/$i/router/bin/
|
||||
done
|
||||
for i in win-gui; do
|
||||
@@ -82,6 +72,11 @@ for i in linux mac win linux-gui mac-gui win-gui; do
|
||||
done
|
||||
done
|
||||
|
||||
mkdir -p $basedir/dist/mac-gui/router-app/
|
||||
cp -R $basedir/resources/i2p-zero.app $basedir/dist/mac-gui/router-app/
|
||||
mv $basedir/dist/mac-gui/router/* $basedir/dist/mac-gui/router-app/i2p-zero.app/Contents/MacOS/
|
||||
rm -fr $basedir/dist/mac-gui/router
|
||||
|
||||
du -sk dist/* | awk '{printf "%.1f MB %s\n",$1/1024,$2}'
|
||||
|
||||
echo "*** Done ***"
|
||||
|
||||
@@ -5,7 +5,7 @@
|
||||
<key>CFBundleGetInfoString</key>
|
||||
<string>i2p-zero</string>
|
||||
<key>CFBundleExecutable</key>
|
||||
<string>launch-gui.sh</string>
|
||||
<string>bin/launch-gui.sh</string>
|
||||
<key>CFBundleIdentifier</key>
|
||||
<string>org.getmonero.i2p.zero.gui</string>
|
||||
<key>CFBundleName</key>
|
||||
|
||||
@@ -1,6 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
wd=${0%/*}
|
||||
cd "$wd"
|
||||
basedir="$wd/../../../.."
|
||||
./java -cp $basedir/i2p.base/jbigi.jar -m org.getmonero.i2p.zero.gui --i2p.dir.base.template=$basedir/i2p.base
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
exec 3<>/dev/tcp/localhost/30000; echo "$1 $2 $3" >&3; cat <&3
|
||||
Reference in New Issue
Block a user