summarylogtreecommitdiffstats
diff options
context:
space:
mode:
authorCountStarlight2019-01-06 13:23:08 +0800
committerCountStarlight2019-01-06 13:23:08 +0800
commitdfd8aba6c126c04faddf31849be6be0f752da572 (patch)
tree80cbde493edee1a45a40fa03d47a58b8f4a03c48
parent23e81c697ade70547ec7cf220d3f255d03c0f863 (diff)
downloadaur-deepin-wine-thunderspeed.tar.gz
Fixed run.sh.
Signed-off-by: CountStarlight <countstarlight@gmail.com>
-rw-r--r--.SRCINFO4
-rw-r--r--PKGBUILD4
-rw-r--r--README.md2
-rwxr-xr-xrun.sh9
4 files changed, 11 insertions, 8 deletions
diff --git a/.SRCINFO b/.SRCINFO
index bf2539d0e21..f154cae44ec 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,5 +1,5 @@
pkgbase = deepin-wine-thunderspeed
- pkgdesc = Thunderspeed(Xun Lei) on Deepin Wine For Archlinux(Don't need deepin-wine package)
+ pkgdesc = Thunderspeed(Xun Lei) on Deepin Wine For Archlinux
pkgver = 7.10.35.366deepin18
pkgrel = 1
url = http://dl.xunlei.com/
@@ -17,7 +17,7 @@ pkgbase = deepin-wine-thunderspeed
source = https://mirrors.ustc.edu.cn/deepin/pool/non-free/d/deepin.com.thunderspeed/deepin.com.thunderspeed_7.10.35.366deepin18_i386.deb
source = run.sh
md5sums = 8b6894e19d625844da4a6a85ab1c40ff
- md5sums = 94a6bd45f579622b0799d664a9d65964
+ md5sums = ef1dfefa4264ebd574142c97ac39d16c
pkgname = deepin-wine-thunderspeed
diff --git a/PKGBUILD b/PKGBUILD
index 15e9b25bc94..d22e9375698 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -3,7 +3,7 @@
pkgname=deepin-wine-thunderspeed
pkgver=7.10.35.366deepin18
pkgrel=1
-pkgdesc="Thunderspeed(Xun Lei) on Deepin Wine For Archlinux(Don't need deepin-wine package)"
+pkgdesc="Thunderspeed(Xun Lei) on Deepin Wine For Archlinux"
arch=("x86_64")
url="http://dl.xunlei.com/"
license=('custom')
@@ -14,7 +14,7 @@ _mirror="https://mirrors.ustc.edu.cn/deepin"
source=("$_mirror/pool/non-free/d/deepin.com.thunderspeed/deepin.com.thunderspeed_${pkgver}_i386.deb"
"run.sh")
md5sums=('8b6894e19d625844da4a6a85ab1c40ff'
- '94a6bd45f579622b0799d664a9d65964')
+ 'ef1dfefa4264ebd574142c97ac39d16c')
build() {
msg "Extracting DPKG package ..."
diff --git a/README.md b/README.md
index 6dc5ba9e19f..1c90789e367 100644
--- a/README.md
+++ b/README.md
@@ -2,7 +2,7 @@
把deepin打包的迅雷极速版移植到Archlinux
-构建状态: ![https://github.com/countstarlight/deepin-wine-thunderspeed-arch](https://travis-ci.org/countstarlight/deepin-wine-thunderspeed-arch.svg?branch=master)
+构建状态: [![travis-ci](https://travis-ci.org/countstarlight/deepin-wine-thunderspeed-arch.svg?branch=master)](https://travis-ci.org/countstarlight/deepin-wine-thunderspeed-arch)
感谢:
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
;;