Skip to content

Commit

Permalink
Switch to LuaJIT tarball
Browse files Browse the repository at this point in the history
  • Loading branch information
LebJe committed Nov 19, 2024
1 parent 241eb5c commit b3aa448
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions scripts/buildLuaJIT.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,10 @@ New-Item -Path $installDir -ItemType "directory" -Name "include"
New-Item -Path $installDir -ItemType "directory" -Name "share"
New-Item -Path $installDir -ItemType "directory" -Name "jit"

git clone https://luajit.org/git/luajit.git LuaJIT_src

Set-Location "LuaJIT_src"
Invoke-WebRequest -Uri "https://github.com/LuaJIT/LuaJIT/archive/refs/tags/v2.1.ROLLING.tar.gz" -OutFile "LuaJIT.tar.gz"
tar -xzvf "LuaJIT.tar.gz"
Remove-Item "LuaJIT.tar.gz"
Set-Location "LuaJIT-2.1.ROLLING"

mingw32-make.exe

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

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

0 comments on commit b3aa448

Please sign in to comment.