-
Notifications
You must be signed in to change notification settings - Fork 5
/
supermemo16.verb
213 lines (210 loc) · 12.2 KB
/
supermemo16.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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
# -*- Mode: shell-script; -*-
# Created by supermemo-wine
# URL: https://github.com/alessivs/supermemo-wine
# Edit with care.
#
# This Winetricks verb installs SuperMemo 16.
w_metadata supermemo16 apps \
title="SuperMemo 16" \
publisher="SuperMemo World" \
media="download" \
file1="sm16inst.exe" \
installed_exe1="c:/SuperMemo/sm16.exe"
load_supermemo16()
{
w_package_unsupported_win64
w_call ie8
w_call gdiplus_winxp
w_call tahoma
w_call fontsmooth=rgb
w_call winxp
w_download https://supermemo.org/install/sm16inst.exe 2add9eebc8398847e9a82b711ff88cd04fcba877700dc0f086630701bd98b5c4
w_try_cd "$W_CACHE/$W_PACKAGE"
w_ahk_do "
run, sm16inst.exe
WinWait, SuperMemo Install Wizard, Welcome to the SuperMemo
Sleep 800
ControlClick, Button2
WinWait, SuperMemo Install Wizard, Choose Install Folder
Sleep 800
ControlClick, Button2
WinWait, SuperMemo Install Wizard, Choose Start Menu
Sleep 800
ControlClick, Button4
Sleep 800
ControlClick, Button2
WinWait, SuperMemo Install Wizard, Choose Additional
Sleep 800
ControlClick, Button8
Sleep 800
ControlClick, Button2
WinWait, SuperMemo Install Wizard, Completing the
ControlClick, Button4
Sleep 800
ControlClick, Button2
Sleep 800
WinWaitClose, SuperMemo Install Wizard
"
cat <<EOF | base64 --decode > "$WINEPREFIX/drive_c/SuperMemo/smicon.png"
iVBORw0KGgoAAAANSUhEUgAAAEAAAABACAYAAACqaXHeAAAACXBIWXMAAA7EAAAOxAGVKw4bAAAd
CklEQVR4nMWbebClZX3nP8/yvu/Z77lL375b73TTdNMssgbQ4JYgogGjJhpHMzGrYzLJxLFMJTVl
GCc1k2QstGJ0xkyZMk40EI0hJKIiIAIqIQ0C0k3T9N6373r2c97tWeaP2820CHQ3NMmv6ta57z11
6zzfz/k9v/f5La/w3gv+DWxhfl46Z5mYnHL/Fp9/wvS/xocc2LdPPnDnV2oPf+1LM61DT1WGh+t6
fGZDpVyr6N6xZ1r9dsvIYj0b23zJ7Pv+8NMLQ0ND/2pQxCvtAbf+xSem7r/1s1dWhoYutf3G21Ta
3FLQAg/E0Rg9SmTGOxFWGuH4htudkHfV6/VDr7riqkMTq8dnr7766lcUxisKoNVqhTe/941/1p0/
9PO1IK9sWTvKzOoqfVnh6bjOY8kkR+0Y1oHGU1SGmsxcoTa2O6iNPVT13bv+6+/+yh1D9XrnlVrj
Kwbgzn/4u3P+5r/95i8XbP9D58zU5cbJMqo6wsGB4rCpsVecw6yYJiwOUdKSQCmEAAEgFXhPTZsj
hNU7O8tLjQ2lzs7//Kvvvmt6ZroF4L1fESDEy/KQVwTA777n+rf1Z/f9km/PvuEdr98Wai15Ml/N
9wcTDKpT2MIwojSKL41SVgGhVkipEAjA45zDO4/OO1zk7+RAe8RkJjx01Mzsnii7+95y+cYvvPH1
184952NfEoizCuC2v/3y+q/97Rc+kOzf+c6aaU69641b9chQkdsba3gg3YCYOJfSyARhoUikBZfZ
rzMu5lnS22gH6xmoVQxUHe893jswOVvSr7E/3UwzLRPkywRZvzG77Pdes23642+6evvtmzZtyk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KKZcrZ+UccEa5gNbaaa1doVAwQAL8yPN8f3rrJ6+s1YaMdkWdJQOW2l1KgUI4vzIg
hUB5f/zpsJU5P2s99ng7caWXCF6uVAUcgBQIKdEqoBhVKJQrDNeqR0bGJ5N/dQCnMq/D+4Lq0J+X
887bda04NTRSohopvBG0ujG9bp88SbDH53ed8SsPygmQQiARCAmBUBSCgGKxhBWSODcgA4JiJSlU
h+6uVKtfWbt5a+tsrPmsJ0Nf/ItPj9vHvnHR0OrxrWna/MBwOd8ShRonPHngcdHxByFgpexlPM5Y
XJpj4pUmRz7IMZlHWEWaePoinNMj07f6Qfv+8uo1T1z5Cx/cu3nLuWflNviKPTn6+KOPFJ746sfP
qZd7leHxqYqorbkoy/tXBuHggqiYTajAl6RACuNwmSEfGNKeSeKeaPRNeQ/B0MO+tXDf/O5dS1mh
noxeft2RG979S41K5ezs/RP2ij88DfD0rifk3OH9Ybzww8LosKyUV01NGKen0tTUvXEh4JSUPeXt
bNpcmF1Y7ndkfX2y6fxLBlu27XhFH57+fztmsdxa9JW7AAAAAElFTkSuQmCC
EOF
_W_prefix_name="${WINEPREFIX##*/}"
_W_shortcut="${W_TMP}/supermemo16.${_W_prefix_name}.desktop"
cat > "$_W_shortcut" <<EOF
[Desktop Entry]
Name=SuperMemo 16 ($_W_prefix_name)
Exec=env WINEPREFIX="$WINEPREFIX" $WINE "$WINEPREFIX/drive_c/SuperMemo/sm16.exe"
Type=Application
Categories=Education;
StartupNotify=true
Comment=Organize your knowledge and learn at the maximum possible speed
Path=$WINEPREFIX/drive_c/SuperMemo
Icon=$WINEPREFIX/drive_c/SuperMemo/smicon.png
StartupWMClass=sm16.exe
EOF
if test -d "$XDG_DATA_HOME" && test -d "$XDG_DATA_HOME/applications"
then
cp "$_W_shortcut" "$XDG_DATA_HOME/applications"
else
if ! test -d "$XDG_DESKTOP_DIR" && test -f "$XDG_CONFIG_HOME/user-dirs.dirs"
then
. "$XDG_CONFIG_HOME/user-dirs.dirs"
fi
if test -d "$XDG_DESKTOP_DIR"
then
cp "$_W_shortcut" "$XDG_DESKTOP_DIR"
fi
fi
unset _W_prefix_name _W_shortcut
}