Start the installed Riot Client after the first-time installer exits

Riot's installer puts the client in /Users/Shared/Riot Games and exits;
its LaunchServices hand-off to that client does not start it under
Darling, so the window just closes. The installer wrapper now launches
the installed client itself, and the runner links it to
/Applications/Riot Client.app when that link is missing.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
lucannez64andClaude Opus 5.5 committed 2026-10-15 09:27:29 +02:00
1 parent 7bbf9ec0e7
commit c030b8ff82
3 files changed
+26 -1

No files matched your search

+10
View File
@@ -10,4 +10,14 @@ unzip -q -o "build/installer/live.$region.zip" -d build/installer
RIOT_LAUNCHER_HOST="$repo/build/installer/Install League of Legends $region.app/Contents/MacOS/RiotClientServices"
RCLOL_REGION=$(printf '%s' "$region" | tr '[:lower:]' '[:upper:]')
export RIOT_LAUNCHER_HOST RCLOL_REGION
# The installer exits after installing the Riot Client; its own hand-off to the
# client fails under Darling, so start the installed client here.
sh scripts/run.sh || true
unset RIOT_LAUNCHER_HOST
prefix=${DPREFIX:-$HOME/.darling}
if [ ! -d "$prefix/Users/Shared/Riot Games/Riot Client.app/Contents/MacOS" ]; then
echo "The installer exited without installing the Riot Client. Its logs are in" >&2
echo "$prefix/Users/<guest user>/Library/Logs/Riot Games/Install League of Legends $region/Launcher" >&2
exit 1
fi
exec sh scripts/run.sh