check_architecture x86_64 DISPLAY="" echo "Please select the default path when prompted by the installer." alert get_installer "stardew_valley_1_5_6_1988831614_53040.sh" "https://www.gog.com/game/stardew_valley" bash "${cache}/stardew_valley_1_5_6_1988831614_53040.sh" || { echo "Error installing game." exit 1; } smapiVersion="3.18.4" download "https://github.com/Pathoschild/SMAPI/releases/download/${smapiVersion}/SMAPI-${smapiVersion}-installer.zip" "https://stormgames.wolfe.casa/downloads/stardew-valley/Mods.tar.xz" smapiTmp="$(mktemp -d)" unzip "${cache}/SMAPI-${smapiVersion}-installer.zip" -d "$smapiTmp" echo "Preparing to install mods. Please select the same path as before when prompted." echo "When it says SMAPI has been installed, press enter to finish installation." alert bash "${smapiTmp}/SMAPI ${smapiVersion} installer/install on Linux.sh" ln -sf "${HOME}/GOG Games/Stardew Valley/game" "${installPath}/StardewValley" tar -xvf "${cache}/Mods.tar.xz" -C "${installPath}/StardewValley/"