/
qqlight.verb
executable file
·58 lines (48 loc) · 2.34 KB
/
qqlight.verb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
w_metadata qqlight apps \
title="QQ Light (QQ 轻聊,a Chinese chat app)" \
publisher="Tencent" \
year="2015" \
media="download" \
file1="QQ7.9Light.exe" \
file2="QQLight.tar.gz"\
installed_exe1="$W_PROGRAMS_X86_WIN/Tencent/QQLite/Bin/QQScLauncher.exe" \
homepage="http://www.qq.com" \
unattended="no"
load_qqlight()
{
w_download http://dldir1.qq.com/qqfile/qq/QQ7.9Light/14308/QQ7.9Light.exe 4758cea5cc140d018f487865983e4b13c71c96c8f864f250db3ff0a956681489
w_download http://hillwoodhome.net/wine/QQLight.tar.gz e6ee5c5dbe524c96d2b96eed343160423b023d38cf2d4dcbc2baea660eae5374
if w_workaround_wine_bug 29636 "Installing native riched20 to work around crash bug"; then
w_call riched20
fi
# if w_workaround_wine_bug 34566 "Installing native ctf to work around crash"
# then
# w_call msctf
# fi
# Make sure chinese fonts are available
w_call fakechinese
# uses mfc42u.dll
w_call mfc42
if w_workaround_wine_bug 38171 "Installing desktop file to work around bug"; then
cd "$W_TMP/"
tar -zxf "$W_CACHE/qqlight/QQLight.tar.gz"
w_try mkdir -p $HOME/.local/share/applications/wine/Programs/腾讯软件/QQ轻聊版/
w_try mkdir -p $HOME/.local/share/icons/hicolor/48x48/apps
w_try mkdir -p $HOME/.local/share/icons/hicolor/256x256/apps
w_try mv QQLight/QQ轻聊版.desktop $HOME/.local/share/applications/wine/Programs/腾讯软件/QQ轻聊版
w_try mv QQLight/48x48/QQLight.png $HOME/.local/share/icons/hicolor/48x48/apps
w_try mv QQLight/256x256/QQLight.png $HOME/.local/share/icons/hicolor/256x256/apps
echo Exec=env WINEPREFIX=$WINEPREFIX $WINE '"'$W_PROGRAMS_X86_WIN'\Tencent\QQLite\Bin\QQScLauncher.exe"'>> $HOME/.local/share/applications/wine/Programs/腾讯软件/QQ轻聊版/QQ轻聊版.desktop
fi
if w_workaround_wine_bug 39384 "Disable ntoskrnl.exe to work around can't be started bug"; then
w_override_dlls disabled ntoskrnl.exe
fi
if w_workaround_wine_bug 37680 "Disable txplatform.exe to fix QQ can't be quit cleanly"; then
w_override_dlls disabled txplatform.exe
fi
# Disable update, stay on the version.
w_override_dlls disabled txupd.exe
w_try_cd "$W_CACHE/$W_PACKAGE"
w_try "$WINE" "$file1"
w_declare_exe "$W_PROGRAMS_X86_WIN\\Tencent\\QQLite\\Bin" QQScLauncher.exe
}