Updatr for Swamp 2.

For whatever reason, Wine is choking on the update when you try to go
and do it through the game's menu, so we'll just do it here for now.
This commit is contained in:
2026-08-26 05:33:21 -04:00
parent eee7b7e7c8
commit 7ff3f0b47d
+16
View File
@@ -0,0 +1,16 @@
#!/usr/bin/env bash
# Updater script for Swamp 2.
# For whatever reason, the updates are partially applied and I'm too lazy to figure out why Wine is barfing, so we'll just do it manually.
cache="${XDG_CACHE_HOME:-$HOME/.cache}/audiogame-manager"
. ../.includes/dialog-interface.sh
. ../.includes/functions.sh
swamphouse=~/.local/wine64/drive_c/Program\ Files/swamp2
myver=$(cat "$swamphouse/myversion.txt")
newver=$(curl -s https://kaldobsky.com/audiogames/swamp2version.txt)
if [[ $newver -gt $myver ]]; then
agm_msgbox "Our version: ${myver}, with the newer version being ${newver}"
download "https://kaldobsky.com/audiogames/swamp2_update.zip"
install_with_progress unzip "Extracting game files..." -d "${swamphouse}" "${cache}/swamp2_update.zip"
rm "${cache}/swamp2_update.zip"
fi