mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
18 lines
829 B
Bash
Executable File
18 lines
829 B
Bash
Executable File
#!/bin/sh
|
|
set -eu
|
|
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
|
cd "$repo"
|
|
if [ -n "${DARLING_WORKSPACE:-}" ] && ! python3 scripts/nix-state.py check; then
|
|
echo 'Rootless runtime readiness is missing or incompatible; run darling-lol --installer in a terminal.' >&2
|
|
exit 1
|
|
fi
|
|
export PATH="${DARLING_RUNNER_DIR:+$DARLING_RUNNER_DIR:}$repo/usr-local/bin:/usr/local/bin:$PATH"
|
|
python3 scripts/configure.py >/dev/null
|
|
if [ -d build/venv/bin ]; then PATH="$repo/build/venv/bin:$PATH"; export PATH; fi
|
|
# darling-lol perf: optionally wrap with gamemoderun for automatic
|
|
# CPU governor, nice level, and scheduler optimizations.
|
|
if [ "${RCLOL_GAMEMODE:-auto}" != "0" ] && command -v gamemoderun >/dev/null 2>&1; then
|
|
exec gamemoderun sh build/runtime/tools/run-riot-client.sh
|
|
fi
|
|
exec sh build/runtime/tools/run-riot-client.sh
|