Skip to content

Commit b3aa448

Browse files
committed
Switch to LuaJIT tarball
1 parent 241eb5c commit b3aa448

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

scripts/buildLuaJIT.ps1

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,9 +17,10 @@ New-Item -Path $installDir -ItemType "directory" -Name "include"
1717
New-Item -Path $installDir -ItemType "directory" -Name "share"
1818
New-Item -Path $installDir -ItemType "directory" -Name "jit"
1919

20-
git clone https://luajit.org/git/luajit.git LuaJIT_src
21-
22-
Set-Location "LuaJIT_src"
20+
Invoke-WebRequest -Uri "https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.1.ROLLING.tar.gz" -OutFile "LuaJIT.tar.gz"
21+
tar -xzvf "LuaJIT.tar.gz"
22+
Remove-Item "LuaJIT.tar.gz"
23+
Set-Location "LuaJIT-2.1.ROLLING"
2324

2425
mingw32-make.exe
2526

@@ -34,4 +35,4 @@ Copy-Item "src\luajit.exe" -Destination "$($installDir)\bin"
3435
Copy-Item "src\lua51.dll" -Destination "$($installDir)\bin"
3536

3637
Set-Location "$($pwd.Path)\.."
37-
Remove-Item -Recurse -Force "LuaJIT_src"
38+
Remove-Item -Recurse -Force "LuaJIT-2.1.ROLLING"

0 commit comments

Comments
 (0)