From a7adee9c4e71334b425e203d6a22658249d8d2f6 Mon Sep 17 00:00:00 2001 From: "Leroy.H.Y" Date: Fri, 13 Sep 2019 18:35:22 +0800 Subject: [PATCH 1/2] Changed .gitignore --- .gitignore | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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/ From 6db033eb0ed7c80d79e274c89afa6de3ab44f3a4 Mon Sep 17 00:00:00 2001 From: "Leroy.H.Y" Date: Fri, 13 Sep 2019 21:08:12 +0800 Subject: [PATCH 2/2] [change] Changed AppImage desktop. --- icons/AppImage-AppRun | 26 ++++++++++++++++++++++++++ icons/AppImage-Qv2ray.desktop | 9 +++++++++ icons/Qv2ray.desktop | 5 +++-- 3 files changed, 38 insertions(+), 2 deletions(-) create mode 100755 icons/AppImage-AppRun create mode 100755 icons/AppImage-Qv2ray.desktop 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.