diff options
author | Hui Yiqun | 2018-06-03 11:27:46 +0800 |
---|---|---|
committer | Hui Yiqun | 2018-06-03 11:27:46 +0800 |
commit | 46c7639b3bafbaec43a80eb47864385cc6128f17 (patch) | |
tree | c86a26bf8386903ef8d3050fa853d99b835f5329 /run.sh | |
parent | 2cba05a109fd71b5c6fc101d2f448f08018b6a5e (diff) | |
download | aur-46c7639b3bafbaec43a80eb47864385cc6128f17.tar.gz |
workaround the launch issue
Diffstat (limited to 'run.sh')
-rwxr-xr-x | run.sh | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/run.sh b/run.sh new file mode 100755 index 000000000000..6cbeb1e5e9e8 --- /dev/null +++ b/run.sh @@ -0,0 +1,15 @@ +WINEPREFIX="$HOME/.deepinwine/Deepin-WXWork" +APPDIR="/opt/deepinwine/apps/Deepin-WXWork" +APPVER="2.4.16.1347deepin0-1" +APPTAR="files.7z" +PACKAGENAME="deepin.com.wxwork" + +if [ ! -d "$WINEPREFIX" ]; then + mkdir -p $WINEPREFIX + 7z x "$APPDIR/$APPTAR" -o"$WINEPREFIX" + mv "$WINEPREFIX/drive_c/users/"{@current_user@,$USER} + sed -i "s#@current_user@#$USER#" $WINEPREFIX/*.reg +fi + +export WINEPREFIX +LANG=zh_CN.UTF-8 wine "$WINEPREFIX/drive_c/Program Files/WXWork/WXWork.exe" |