Add Audio Defence
This commit is contained in:
1 parent
b991dd30d2
commit
f0a731589a
4 files changed
+37
-3
No files matched your search
@@ -0,0 +1,21 @@
|
||||
# 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
|
||||
mkdir -p "${installPath}/Audio_Defence"
|
||||
cp -v "${cache}/${appImageFile}" "${installPath}/Audio_Defence/${appImageFile}"
|
||||
chmod +x "${installPath}/Audio_Defence/${appImageFile}"
|
||||
Reference in new issue
Block a user