Updater for AudioDefence added. Game updated to latest version.

This commit is contained in:
Storm Dragon committed 2026-09-22 13:15:43 -04:00
1 parent f0a731589a
commit abf45a54d9
4 files changed
+30 -29

No files matched your search

+7 -18
View File
@@ -1,21 +1,10 @@
# shellcheck shell=bash disable=SC2154 # Variables are set by linux-game-manager.sh
check_architecture x86_64 aarch64
case "$(uname -m)" in
x86_64)
appImageFile="AudioDefence-26.09.20-3-x86_64.AppImage"
expectedHash="8ac007d2c2ea29cd2c84d22d892d1e92f236b456a3667f66919a837f023040cf"
;;
aarch64)
appImageFile="AudioDefence-26.09.20-3-aarch64.AppImage"
expectedHash="2b3c5efeda51f1be5a9389d05a4a29ca7f92d39b20c8017f1ca0d492c69cf850"
;;
esac
download_named "${appImageFile}" "${ipfs[Audio_Defence_$(uname -m)]}"
if ! printf '%s %s\n' "${expectedHash}" "${cache}/${appImageFile}" | sha256sum --check --strict; then
rm -f "${cache}/${appImageFile}"
ui_msgbox "Linux Game Manager" "Linux Game Manager" "The Audio Defence download failed its SHA-256 verification. Please try again."
exit 1
fi
audioDefenceUrl="${ipfs[Audio_Defence_$(uname -m)]}"
downloadFile="${audioDefenceUrl##*filename=}"
downloadFile="${downloadFile%%&*}"
[[ -n "${downloadFile}" && "${downloadFile}" != "${audioDefenceUrl}" ]] || downloadFile="AudioDefence-$(uname -m).AppImage"
download_named "${downloadFile}" "${audioDefenceUrl}"
mkdir -p "${installPath}/Audio_Defence"
cp -v "${cache}/${appImageFile}" "${installPath}/Audio_Defence/${appImageFile}"
chmod +x "${installPath}/Audio_Defence/${appImageFile}"
install -v -m 0755 "${cache}/${downloadFile}" "${installPath}/Audio_Defence/AudioDefence.AppImage"
find "${installPath}/Audio_Defence" -maxdepth 1 -type f -name 'AudioDefence-*.AppImage' -delete