16 lines
529 B
Bash
16 lines
529 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
|
||
|
export WINEARCH=win32
|
||
|
bottle="${1,,}"
|
||
|
shift
|
||
|
bottle="${bottle//[[:space:]]/-}"
|
||
|
mkdir -p "$HOME/.local/wine/${bottle}"
|
||
|
export WINEPREFIX="$HOME/.local/wine/${bottle}"
|
||
|
# Arguments to the function are dependancies to be installed.
|
||
|
(wine msiexec /i z:/usr/share/wine/mono/$(ls -1 /usr/share/wine/mono/) /silent
|
||
|
wine msiexec /i z:$(ls -1 /usr/share/wine/gecko/*x86.msi) /silent
|
||
|
winetricks -q $@ ${winVer:-winxp} ${winetricksSettings}) | dialog --progressbox "Installing wine bottle, please wait..." -1 -1
|
||
|
|
||
|
exit 0
|