diff --git a/README.md b/README.md index 8bbd6f9..f16cb68 100755 --- a/README.md +++ b/README.md @@ -53,17 +53,18 @@ the jlink tool to build zero-dependency platform-specific launchers. To run the Linux router, type: `dist/linux/router/bin/launch.sh` -or `dist/linux/router/bin/launch-gui.sh` +or `dist/linux-gui/router/bin/launch-gui.sh` +or double click the `dist/linux-gui/router/i2p-zero.desktop' file To run the MacOS router, type: `dist/mac/router/bin/launch.sh` -or run the app located in `dist/mac/router/i2p-zero.app` +or run the app located in `dist/mac-gui/router/i2p-zero.app` For Windows, run: `dist/windows/router/bin/launch.bat` -or `dist/windows/router/bin/launch-gui.bat` +or `dist/windows-gui/router/bin/launch-gui.bat` Note that for the Windows GUI to run, you may need to install the latest Microsoft Visual C++ Redistributable diff --git a/bin/build-launcher.sh b/bin/build-launcher.sh index 6ff72ac..476d079 100755 --- a/bin/build-launcher.sh +++ b/bin/build-launcher.sh @@ -80,6 +80,9 @@ cp -R $basedir/resources/i2p-zero.app $basedir/dist/mac-gui/router/ mv $basedir/dist/mac-gui/router-tmp/* $basedir/dist/mac-gui/router/i2p-zero.app/Contents/MacOS/ rm -fr $basedir/dist/mac-gui/router-tmp +# specify .desktop file so linux-gui can be launched via double-click +cp $basedir/resources/i2p-zero.desktop $basedir/dist/linux-gui/router/ + du -sk dist/* | awk '{printf "%.1f MB %s\n",$1/1024,$2}' echo "*** Done ***" diff --git a/resources/i2p-zero.desktop b/resources/i2p-zero.desktop new file mode 100755 index 0000000..2ffb8c3 --- /dev/null +++ b/resources/i2p-zero.desktop @@ -0,0 +1,7 @@ +[Desktop Entry] +Version=1.0 +Name=i2p-zero +Exec=/bin/bash -c 'cd "$(dirname "$0")"; ./bin/launch-gui.sh' %k +Terminal=false +Type=Application +Categories=Utility;