Fix Linux App startup icon (#344)

* Fix Linux App startup icon
* Use project version from cmake
* Set Release date automatically
This commit is contained in:
Mykola Baibuz 2023-09-24 11:57:59 -04:00 committed by GitHub
parent 52400252dd
commit b4df5c076e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
9 changed files with 19 additions and 15 deletions

View file

@ -1,10 +0,0 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=AmneziaVPN client
Version=2.0.10
Comment=Client of your self-hosted VPN
Exec=AmneziaVPN
Icon=/usr/share/pixmaps/AmneziaVPN_Logo.png
Categories=Network;Qt;Security;
Terminal=false

Binary file not shown.

After

Width:  |  Height:  |  Size: 28 KiB

View file

@ -1,10 +0,0 @@
#!/usr/bin/env xdg-open
[Desktop Entry]
Type=Application
Name=AmneziaVPN client
Version=2.0.10
Comment=Client of your self-hosted VPN
Exec=AmneziaVPN
Icon=/usr/share/pixmaps/AmneziaVPN_Logo.png
Categories=Network;Qt;Security;
Terminal=false

Binary file not shown.

Before

Width:  |  Height:  |  Size: 55 KiB

View file

@ -37,6 +37,7 @@ sudo ln -s $APP_PATH/client/$APP_NAME.sh /usr/local/bin/$APP_NAME >> $LOG_FILE
echo "user desktop creation loop started" >> $LOG_FILE
sudo cp $APP_PATH/$APP_NAME.desktop /usr/share/applications/ >> $LOG_FILE
sudo cp $APP_PATH/$APP_NAME.png /usr/share/pixmaps/ >> $LOG_FILE
sudo chmod 555 /usr/share/applications/$APP_NAME.desktop >> $LOG_FILE
echo "user desktop creation loop ended" >> $LOG_FILE

View file

@ -54,6 +54,11 @@ if test -f /usr/share/applications/$APP_NAME.desktop; then
fi
if test -f /usr/share/pixmaps/$APP_NAME.png; then
sudo rm -f /usr/share/pixmaps/$APP_NAME.png >> $LOG_FILE
fi
date >> $LOG_FILE
echo "Service after uninstall status:" >> $LOG_FILE
sudo systemctl status $APP_NAME >> $LOG_FILE