From fc6a83a3afbe1641401a68c3128addd25ea33dc9 Mon Sep 17 00:00:00 2001 From: Storm Dragon Date: Mon, 9 Nov 2026 19:12:22 -0500 Subject: [PATCH] Updated RS Games. --- .install/RS Games.sh | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) diff --git a/.install/RS Games.sh b/.install/RS Games.sh index ebd6695..a54913e 100644 --- a/.install/RS Games.sh +++ b/.install/RS Games.sh @@ -1,6 +1,27 @@ -download "http://rsgames.org/rsdownloads/rsgclient/rsgames-client-setup-2.01.exe" +# shellcheck shell=bash disable=SC2154 # cache and WINEPREFIX are shared AGM installer state. export WINEARCH=win64 -export winVer="win7" -install_wine_bottle -wine "${cache}/rsgames-client-setup-2.01.exe" /silent -add_launcher "c:\Program Files (x86)\RS Games Client\rsg.exe" +export winVer="win10" + +# Keep the cache filename versioned: upstream reuses the asset name for each release. +download "https://github.com/rsgames-zgp/rsgames-client-releases/releases/download/v2.3/rsg-windows-x86_64.exe?filename=rsgames-client-setup-2.3.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 RS Games..." \ + "${cache}/rsgames-client-setup-2.3.exe" \ + /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP- /NOICONS /TASKS= \ + /NOCLOSEAPPLICATIONS /NORESTARTAPPLICATIONS \ + '/DIR=C:\Program Files\RS Games Client' +); then + alert "RS Games" "Installation failed. No launcher was added." + exit 1 +fi + +if [[ ! -s "${WINEPREFIX}/drive_c/Program Files/RS Games Client/rsg.exe" ]]; then + alert "RS Games" "The game executable was not installed. No launcher was added." + exit 1 +fi + +add_launcher 'c:\Program Files\RS Games Client\rsg.exe'