-
Notifications
You must be signed in to change notification settings - Fork 5
/
Copy pathwine-config.sh
32 lines (26 loc) · 1.32 KB
/
wine-config.sh
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
#!/bin/sh
export prefix="${HOME}/.wine/wineprefix"
wprefix="Argentum"
prefix_ao="${prefix}/${wprefix}"
prefixshare="${prefix}/share/wine"
prefixcache="${HOME}/.cache/wine"
monov="5.1.0"
geckov="2.47.1"
urlmono="http://dl.winehq.org/wine/wine-mono/${monov}/wine-mono-${monov}-x86.msi"
urlgecko="http://dl.winehq.org/wine/wine-gecko/${geckov}/wine-gecko-${geckov}-x86.msi"
[ ! -d "${HOME}/.wine" ] && mkdir "${HOME}/.wine"
[ ! -d "${prefix}" ] && mkdir -p "${prefix}"
[ ! -d "${prefix_ao}" ] && mkdir -p "${prefix_ao}"
( [ ! -d "${prefixshare}/mono" ] && [ ! -d "${prefixshare}/gecko" ] ) && mkdir -p "${prefixshare}/"{mono,gecko}
## GECKO (IE) Y MONO (.NET) PARA WINE
if [ ! -e "${HOME}/.cache/wine/wine-mono-${monov}-x86.msi" ]; then
wget -P "${prefixcache}" "${urlmono}"
fi
if [ ! -e "${HOME}/.cache/wine/wine-gecko-${geckov}-x86.msi" ]; then
wget -P "${prefixcache}" "${urlgecko}"
fi
cp "${prefixcache}/wine-mono-${monov}-x86.msi" "${prefixshare}/mono"
cp "${prefixcache}/wine-gecko-${geckov}-x86.msi" "${prefixshare}/gecko"
WINEDEBUG=fixme-all WINEPREFIX="${prefix_ao}" WINEARCH=win32 winetricks win7
WINEDEBUG=fixme-all WINEPREFIX="${prefix_ao}" wine msiexec /i "${prefixshare}/mono/wine-mono-${monov}-x86.msi"
WINEDEBUG=fixme-all WINEPREFIX="${prefix_ao}" wine msiexec /i "${prefixshare}/wine/gecko/wine-gecko-${geckov}-x86.msi"