diff --git a/.install/Bag of Bones.sh b/.install/Bag of Bones.sh new file mode 100644 index 0000000..f9401be --- /dev/null +++ b/.install/Bag of Bones.sh @@ -0,0 +1,22 @@ +# shellcheck shell=bash disable=SC2154 # cache and WINEPREFIX are shared AGM installer state. +get_installer "bag_of_bones.zip" "https://sound-storm-entertainment.itch.io/bag-of-bones" || exit 1 +export WINEARCH=win64 +export winVer="win10" +install_wine_bottle || exit 1 + +# Preserve extraction failures through the progress wrapper's pipeline. +if ! ( + set -o pipefail + install_with_progress unzip "Extracting Bag of Bones..." \ + -d "${WINEPREFIX}/drive_c/Program Files/Bag of Bones" "${cache}/bag_of_bones.zip" +); then + alert "Bag of Bones" "Extraction failed. No launcher was added." + exit 1 +fi + +if [[ ! -s "${WINEPREFIX}/drive_c/Program Files/Bag of Bones/bag_of_bones.exe" ]]; then + alert "Bag of Bones" "The game executable was not installed. No launcher was added." + exit 1 +fi + +add_launcher 'c:\Program Files\Bag of Bones\bag_of_bones.exe'