21 lines
1.1 KiB
Bash
21 lines
1.1 KiB
Bash
|
export bottle="aprone"
|
||
|
export winVer="win7"
|
||
|
export winetricksSettings="vd=1024x768"
|
||
|
dialog --backtitle "Audiogame manager" --yesno "If you do not have a full 32 bit gstreamer installation, the Swamp music can cause stuttering and crashes. Would you like to remove the music directory after installation?" -1 -1 --stdout
|
||
|
deleteMusic=$?
|
||
|
download "https://www.kaldobsky.com/audiogames/Swamp.zip"
|
||
|
install_wine_bottle dx8vb quartz corefonts vb6run speechsdk ole32
|
||
|
unzip -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/Swamp.zip"
|
||
|
# make sure the latest version is installed.
|
||
|
if curl -L --output "${cache}/SwampPatch.zip" "https://www.kaldobsky.com/audiogames/SwampPatch.zip" ; then
|
||
|
unzip -o -d "$WINEPREFIX/drive_c/Program Files/swamp" "${cache}/SwampPatch.zip"
|
||
|
fi
|
||
|
$wine 'c:\Program Files\swamp\checkup.exe' /verysilent
|
||
|
#$wine cmd.exe /c 'cd /d c:\Program Files\swamp && Windows32bit.bat'
|
||
|
# Delete music if requested.
|
||
|
if [[ $deleteMusic -eq 0 ]]; then
|
||
|
rm -frv "$WINEPREFIX/drive_c/Program Files/swamp/sounds/Music/"
|
||
|
fi
|
||
|
rm -fv "$WINEPREFIX/drive_c/Program Files/swamp/maps/sub2"
|
||
|
add_launcher "c:\Program Files\swamp\Swamp.exe"
|