Add GNOME desktop entry and icon generator to installer and runtime tools

This commit is contained in:
Andras Laszlo committed 2026-10-16 14:41:20 +02:00
1 parent 269fcf6d9b
commit 1a7916a153
4 files changed
+200

No files matched your search

+7
View File
@@ -0,0 +1,7 @@
#!/bin/sh
# Create/update GNOME desktop entry and launcher icon.
set -eu
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
cd "$repo"
python3 scripts/configure.py >/dev/null
python3 build/runtime/tools/riot-desktop-entry.py
+4
View File
@@ -20,3 +20,7 @@ if [ -f build/runtime/tools/build-riot-libs-runtime.sh ]; then
python3 build/runtime/tools/install-riot-libs-runtime.py
fi
python3 build/runtime/tools/install-darling-system-profiler.py
# darling-lol: install GNOME application launcher and icon.
if [ -f build/runtime/tools/riot-desktop-entry.py ]; then
python3 build/runtime/tools/riot-desktop-entry.py || true
fi
+2
View File
@@ -14,10 +14,12 @@ export RIOT_LAUNCHER_HOST RCLOL_REGION
# client fails under Darling, so start the installed client here.
sh scripts/run.sh || true
unset RIOT_LAUNCHER_HOST
python3 build/runtime/tools/riot-desktop-entry.py || true
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
python3 build/runtime/tools/riot-desktop-entry.py || true
exec sh scripts/run.sh