mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Add GNOME desktop entry and icon generator to installer and runtime tools
This commit is contained in:
1 parent
269fcf6d9b
commit
1a7916a153
4 files changed
+200
No files matched your search
Executable
+7
@@ -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
|
||||
@@ -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
|
||||
@@ -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
|
||||
Reference in new issue
Block a user