linux .desktop launch file added, allowing double click launch of GUI from file browser

This commit is contained in:
knaccc
2019-02-02 04:30:39 +00:00
parent 09dbb09c4d
commit c923a774e8
3 changed files with 14 additions and 3 deletions
+4 -3
View File
@@ -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 <a href="https://support.microsoft.com/en-us/help/2977003/the-latest-supported-visual-c-downloads">Microsoft Visual C++ Redistributable</a>
+3
View File
@@ -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 ***"
+7
View File
@@ -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;