mirror of
https://github.com/lucannez64/darling-lol.git
synced 2026-10-26 19:47:42 +00:00
Merge pull request #33 from ztancrell/fix/installer-region-codes
Map LAN, LAS and OCE to Riot's installer codes
This commit is contained in:
1 file changed
+3
-1
@@ -3,7 +3,9 @@ set -eu
|
||||
repo=$(CDPATH= cd -- "$(dirname -- "$0")/.." && pwd)
|
||||
cd "$repo"
|
||||
region=${1:-euw}
|
||||
case "$region" in euw|eune|na|br|kr|jp|lan|las|oce|ru|tr) ;; *) echo 'Use a Riot installer region code' >&2; exit 1;; esac
|
||||
# Riot publishes LAN, LAS and OCE installers under their platform codes.
|
||||
case "$region" in lan) region=la1;; las) region=la2;; oce) region=oc1;; esac
|
||||
case "$region" in euw|eune|na|br|kr|jp|la1|la2|oc1|ru|tr) ;; *) echo 'Use a Riot installer region code' >&2; exit 1;; esac
|
||||
python3 scripts/configure.py >/dev/null
|
||||
bash build/runtime/tools/fetch-installer.sh "$region" build/installer
|
||||
unzip -q -o "build/installer/live.$region.zip" -d build/installer
|
||||
|
||||
Reference in new issue
Block a user