Updated RS Games.

This commit is contained in:
Storm Dragon committed 2026-11-09 19:12:22 -05:00
1 parent 43102b72b8
commit fc6a83a3af
1 file changed
+26 -5
+26 -5
View File
@@ -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'