summarylogtreecommitdiffstats
path: root/wine-qqintl
diff options
context:
space:
mode:
authorwenLiangcan2016-05-12 08:51:58 +0800
committerwenLiangcan2016-05-12 08:51:58 +0800
commit8b608de836665273bdb2e70739e9486c934646be (patch)
tree66639ac49f3d4500f1331b66f3a899fc8766623a /wine-qqintl
downloadaur-deepinwine-qqintl.tar.gz
deepinwine-qqintl 0.1.3_2-1.
Diffstat (limited to 'wine-qqintl')
-rw-r--r--wine-qqintl72
1 files changed, 72 insertions, 0 deletions
diff --git a/wine-qqintl b/wine-qqintl
new file mode 100644
index 000000000000..cfe0a8598658
--- /dev/null
+++ b/wine-qqintl
@@ -0,0 +1,72 @@
+#!/bin/sh
+WINEPREFIX=$HOME/.deepinwine/qqintl
+APPDIR=/opt/deepinwine/qqintl
+EXECUTE=$WINEPREFIX/drive_c/Program\ Files/Tencent/QQIntl/Bin/QQ.exe
+APPTAR=QQIntl.tar.gz
+WINEDIR=/usr
+PACKAGENAME=Deepinwine-QQIntl
+
+helpapp()
+{
+ echo " Commands:"
+ echo " -r/--reinstall Fix error or reinstall $PACKAGENAME"
+ echo " -k/--kill Kill wine progrem"
+ echo " -e/--regedit Start regedit editor"
+ echo " -c/--winecfg Start winecfg to tweak wine environment"
+ echo " -h/--help Program help info"
+}
+reinstallapp()
+{
+ echo "Reinstall $PACKAGENAME....."
+ read -p "* Are you sure?(Y/N)" ANSWER
+ if [ "$ANSWER" = "Y" -o "$ANSWER" = "y" -o -z $ANSWER ];then
+ rm -r $WINEPREFIX
+ installapp
+ else
+ exit 0
+ fi
+}
+installapp()
+{
+ echo "Install $PACKAGENAME....."
+ if [ -e $WINEPREFIX ];then
+ echo "PACKAGE had installed,If has trouble, Please use --reinstall(-r) to reinstall $PACKAGENAME"
+ else
+ mkdir -p $WINEPREFIX
+ tar -xzf $APPDIR/$APPTAR -C $WINEPREFIX
+ env WINEPREFIX=$WINEPREFIX $WINEDIR/bin/wine "$EXECUTE"
+ fi
+}
+
+runapp()
+{
+ if [ -e $WINEPREFIX ];then
+ env WINEPREFIX=$WINEPREFIX $WINEDIR/bin/wine "$EXECUTE"
+ else
+ installapp
+ fi
+}
+case $1 in
+ "--reinstall"| "-r")
+ reinstallapp
+ ;;
+ "--kill"| "-k")
+ env WINEPREFIX=$WINEPREFIX $WINEDIR/bin/wineserver -k
+ ;;
+ "--regedit"| "-e")
+ env WINEPREFIX=$WINEPREFIX $WINEDIR/bin/regedit
+ ;;
+ "--winecfg"| "-c")
+ env WINEPREFIX=$WINEPREFIX $WINEDIR/bin/winecfg
+ ;;
+ "--help"| "-h")
+ helpapp
+ ;;
+ *)
+ if [ -z $1 ];then
+ runapp
+ else
+ echo "Invalid option: $1"
+ fi
+ ;;
+esac