# shellcheck shell=bash disable=SC2154 # cache and WINEPREFIX are shared AGM installer state. export WINEARCH=win64 export winVer="win10" download "https://blindgames.eu/jeux/city_of_division_setup.exe" || exit 1 install_wine_bottle || exit 1 # Preserve Wine's exit status through the progress wrapper's pipeline. if ! ( set -o pipefail install_with_progress wine "Installing City of Division..." \ "${cache}/city_of_division_setup.exe" \ /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /NOICONS /TASKS= \ /NOCLOSEAPPLICATIONS /NORESTARTAPPLICATIONS \ '/DIR=C:\Program Files\City of Division' ); then alert "City of Division" "Installation failed. No launcher was added." exit 1 fi if [[ ! -s "${WINEPREFIX}/drive_c/Program Files/City of Division/cityofdivision.exe" ]]; then alert "City of Division" "The game executable was not installed. No launcher was added." exit 1 fi add_launcher 'c:\Program Files\City of Division\cityofdivision.exe'