From f18bcb460ebb67a909297cc39ae7a8f691fc17b3 Mon Sep 17 00:00:00 2001 From: ztancrell Date: Sat, 17 Oct 2026 08:06:05 -0400 Subject: [PATCH] Map LAN, LAS and OCE to Riot's installer codes Riot's CDN has no live.lan.zip, live.las.zip or live.oce.zip (HTTP 404); the installers are published as la1, la2 and oc1. installer.sh now maps the friendly names to those codes and accepts the codes directly. Refs #30 Co-Authored-By: Claude Opus 5.5 --- scripts/installer.sh | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/scripts/installer.sh b/scripts/installer.sh index c7520eb..62c7ed6 100755 --- a/scripts/installer.sh +++ b/scripts/installer.sh @@ -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