summarylogtreecommitdiffstats
path: root/run.sh
diff options
context:
space:
mode:
Diffstat (limited to 'run.sh')
-rwxr-xr-xrun.sh9
1 files changed, 6 insertions, 3 deletions
diff --git a/run.sh b/run.sh
index 0c0e6b181ef..23c436f53bf 100755
--- a/run.sh
+++ b/run.sh
@@ -7,9 +7,10 @@
WINEPREFIX="$HOME/.deepinwine/Deepin-ThunderSpeed"
APPDIR="/opt/deepinwine/apps/Deepin-ThunderSpeed"
-APPVER="7.10.35.366deepin17"
+APPVER="7.10.35.366deepin18"
APPTAR="files.7z"
PACKAGENAME="deepin.com.thunderspeed"
+WINE_CMD="wine"
HelpApp()
{
@@ -20,7 +21,7 @@ HelpApp()
}
CallApp()
{
- bash "$WINEPREFIX/drive_c/deepin/EnvInit.sh"
+ env WINEPREFIX="$WINEPREFIX" WINEDEBUG=-msvcrt $WINE_CMD "c:\\Program Files\\Thunder Network\\Thunder\\Program\\Thunder.exe" &
}
ExtractApp()
{
@@ -28,7 +29,6 @@ ExtractApp()
7z x "$APPDIR/$APPTAR" -o"$1"
mv "$1/drive_c/users/@current_user@" "$1/drive_c/users/$USER"
sed -i "s#@current_user@#$USER#" $1/*.reg
- sed -i "s/deepin-wine/wine/" $1/drive_c/deepin/EnvInit.sh
}
DeployApp()
{
@@ -83,6 +83,9 @@ case $1 in
"-e" | "--remove")
RemoveApp
;;
+ "-u" | "--uri")
+ RunApp $2
+ ;;
"-h" | "--help")
HelpApp
;;