diff --git a/.gitignore b/.gitignore index 905e1f2f..5c5d5d46 100644 --- a/.gitignore +++ b/.gitignore @@ -1,9 +1,9 @@ +# Some files .DS_Store *.pro.user *.qm +./.vscode + build/ src/build/ -./.vscode -tools/python-3.7.3.exe - -Qv2ray.pro.user.4.10-pre1 +OpenBuildService/ diff --git a/icons/AppImage-AppRun b/icons/AppImage-AppRun new file mode 100755 index 00000000..c9eb4e9f --- /dev/null +++ b/icons/AppImage-AppRun @@ -0,0 +1,26 @@ +#!/bin/bash +set -e + +if [ ! -z "$DEBUG" ] ; then + env + set -x +fi + +THIS="$0" +# http://stackoverflow.com/questions/3190818/ +args=("$@") +NUMBER_OF_ARGS="$#" + +if [ -z $APPDIR ] ; then + # Find the AppDir. It is the directory that contains AppRun. + # This assumes that this script resides inside the AppDir or a subdirectory. + # If this script is run inside an AppImage, then the AppImage runtime likely has already set $APPDIR + path="$(dirname "$(readlink -f "${THIS}")")" + while [[ "$path" != "" && ! -e "$path/$1" ]]; do + path=${path%/*} + done + APPDIR="$path" +fi + +echo Application is located at: $APPDIR +exec $APPDIR/opt/Qv2ray/bin/Qv2ray diff --git a/icons/AppImage-Qv2ray.desktop b/icons/AppImage-Qv2ray.desktop new file mode 100755 index 00000000..ae8a7692 --- /dev/null +++ b/icons/AppImage-Qv2ray.desktop @@ -0,0 +1,9 @@ +[Desktop Entry] +Encoding=UTF-8 +Type=Application +Keywords=Internet;VPN;Proxy;v2ray;Qt +Categories=Network;Qt; +Icon=Qv2ray +Exec=AppRun +Name=Qv2ray +Comment=Cross-platform v2ray GUI Client in Qt. diff --git a/icons/Qv2ray.desktop b/icons/Qv2ray.desktop index 37081326..9fbd993d 100755 --- a/icons/Qv2ray.desktop +++ b/icons/Qv2ray.desktop @@ -1,8 +1,9 @@ [Desktop Entry] Encoding=UTF-8 Type=Application +Keywords=Internet;VPN;Proxy;v2ray;Qt Categories=Network;Qt; Icon=Qv2ray -Exec=/opt/Qv2ray/Qv2ray %u +Exec=/opt/Qv2ray/Qv2ray Name=Qv2ray -Comment=Qt cross platform v2ray GUI client +Comment=Cross-platform v2ray GUI Client in Qt.