From ed8ef3ddde1e50349da448c25fffb0630df0b13b Mon Sep 17 00:00:00 2001 From: nilFinx Date: Sat, 21 Feb 2026 08:22:22 +0000 Subject: [PATCH 1/5] get-lit: update luvi to 2.15.0, lit to 3.9.0 --- get-lit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-lit.sh b/get-lit.sh index 7cf68b5..0b2fc90 100755 --- a/get-lit.sh +++ b/get-lit.sh @@ -1,7 +1,7 @@ #!/bin/sh set -eu -LUVI_VERSION=${LUVI_VERSION:-2.14.0} -LIT_VERSION=${LIT_VERSION:-3.8.5} +LUVI_VERSION=${LUVI_VERSION:-2.15.0} +LIT_VERSION=${LIT_VERSION:-3.9.0} LUVI_ARCH=`uname -s`_`uname -m` LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI_ARCH" From 5c4a75a493ed147da20a836ce59008462c4e1ef1 Mon Sep 17 00:00:00 2001 From: nilFinx Date: Sat, 21 Feb 2026 08:22:35 +0000 Subject: [PATCH 2/5] get-lit: update luvi to 2.15.0, lit to 3.9.0 --- get-lit.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-lit.ps1 b/get-lit.ps1 index 7392d97..705b0b6 100644 --- a/get-lit.ps1 +++ b/get-lit.ps1 @@ -1,6 +1,6 @@ -$LUVI_VERSION = "2.14.0" -$LIT_VERSION = "3.8.5" +$LUVI_VERSION = "2.15.0" +$LIT_VERSION = "3.9.0" # Environment variables take precedence if (test-path env:LUVI_VERSION) { $LUVI_VERSION = $env:LUVI_VERSION } if (test-path env:LIT_VERSION) { $LIT_VERSION = $env:LIT_VERSION } From fa96438b2949d640c18cac8bc33cdfcc0bc7b74e Mon Sep 17 00:00:00 2001 From: nilFinx Date: Sat, 21 Feb 2026 09:12:57 +0000 Subject: [PATCH 3/5] get-lit: use correct path for 2.15.0 --- get-lit.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-lit.sh b/get-lit.sh index 0b2fc90..453de80 100755 --- a/get-lit.sh +++ b/get-lit.sh @@ -3,8 +3,8 @@ set -eu LUVI_VERSION=${LUVI_VERSION:-2.15.0} LIT_VERSION=${LIT_VERSION:-3.9.0} -LUVI_ARCH=`uname -s`_`uname -m` -LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI_ARCH" +LUVI_ARCH=`uname -s`-`uname -m` +LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-$LUVI_ARCH-luajit-regular" LIT_URL="https://lit.luvit.io/packages/luvit/lit/v$LIT_VERSION.zip" # Download Files From ff99aba3014484e22a23fac9ee5f9f8ff32c03e1 Mon Sep 17 00:00:00 2001 From: nilFinx Date: Sat, 21 Feb 2026 09:15:45 +0000 Subject: [PATCH 4/5] get-lit: use correct path for 2.15.0 too --- get-lit.ps1 | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/get-lit.ps1 b/get-lit.ps1 index 705b0b6..6ff617a 100644 --- a/get-lit.ps1 +++ b/get-lit.ps1 @@ -11,10 +11,10 @@ if (test-path env:LUVI_ARCH) { if ([System.Environment]::Is64BitProcess) { $LUVI_ARCH = "Windows-amd64" } else { - $LUVI_ARCH = "Windows-ia32" + $LUVI_ARCH = "Windows-x86" } } -$LUVI_URL = "https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI_ARCH.exe" +$LUVI_URL = "https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-$LUVI_ARCH-luajit-regular.exe" $LIT_URL = "https://lit.luvit.io/packages/luvit/lit/v$LIT_VERSION.zip" function Download-File { From 8b4f508476c10d829a3c96b40b20399367c05957 Mon Sep 17 00:00:00 2001 From: nilfinx Date: Sun, 22 Feb 2026 11:25:52 +0900 Subject: [PATCH 5/5] get-lit: Add support for older versions for compat --- get-lit.ps1 | 16 ++++++++++++++-- get-lit.sh | 12 ++++++++++-- 2 files changed, 24 insertions(+), 4 deletions(-) diff --git a/get-lit.ps1 b/get-lit.ps1 index 6ff617a..f40148e 100644 --- a/get-lit.ps1 +++ b/get-lit.ps1 @@ -1,3 +1,5 @@ +Set-StrictMode -Version Latest +$ErrorActionPreference = "Stop" $LUVI_VERSION = "2.15.0" $LIT_VERSION = "3.9.0" @@ -11,10 +13,20 @@ if (test-path env:LUVI_ARCH) { if ([System.Environment]::Is64BitProcess) { $LUVI_ARCH = "Windows-amd64" } else { - $LUVI_ARCH = "Windows-x86" + $LUVI_ARCH = "Windows-ia32" } } -$LUVI_URL = "https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-$LUVI_ARCH-luajit-regular.exe" +if ([version]"2.15.0" -le [version]$LUVI_VERSION) { + if ($LUVI_ARCH -eq "Windows-i386") { + $LUVI_ARCH = "Windows-x86" + } + $LUVI_URL = "https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-$LUVI_ARCH-luajit-regular.exe" +} else { + if ($LUVI_ARCH -eq "Windows-x86") { + $LUVI_ARCH = "Windows-ia32" + } + $LUVI_URL = "https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-$LUVI_ARCH.exe" +} $LIT_URL = "https://lit.luvit.io/packages/luvit/lit/v$LIT_VERSION.zip" function Download-File { diff --git a/get-lit.sh b/get-lit.sh index 453de80..d3ae377 100755 --- a/get-lit.sh +++ b/get-lit.sh @@ -3,8 +3,16 @@ set -eu LUVI_VERSION=${LUVI_VERSION:-2.15.0} LIT_VERSION=${LIT_VERSION:-3.9.0} -LUVI_ARCH=`uname -s`-`uname -m` -LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-$LUVI_ARCH-luajit-regular" +LUVI_OS=$(uname -s) +LUVI_ARCH=$(uname -m) + +# 2.15.0 or higher uses a different URL +if [ "2.15.0" = "$(printf '%s\n%s\n' "2.15.0" "$LUVI_VERSION" | sort -V | head -n 1)" ]; then + LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-${LUVI_OS}-${LUVI_ARCH}-luajit-regular" +else + LUVI_URL="https://github.com/luvit/luvi/releases/download/v$LUVI_VERSION/luvi-regular-${LUVI_OS}_$LUVI_ARCH" +fi + LIT_URL="https://lit.luvit.io/packages/luvit/lit/v$LIT_VERSION.zip" # Download Files