diff --git a/scripts/buildLuaJIT.ps1 b/scripts/buildLuaJIT.ps1 index cc634b4..75bc300 100644 --- a/scripts/buildLuaJIT.ps1 +++ b/scripts/buildLuaJIT.ps1 @@ -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 @@ -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" \ No newline at end of file