Skip to content

Commit 62037b1

Browse files
committed
Install LuaJIT using Git
1 parent bcda37a commit 62037b1

File tree

2 files changed

+5
-6
lines changed

2 files changed

+5
-6
lines changed

scripts/buildLuaJIT.ps1

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,9 @@ 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-
Invoke-WebRequest -Uri "https://luajit.org/download/LuaJIT-2.1.0-beta3.tar.gz" -OutFile "LuaJIT.tar.gz"
21-
tar -xzvf "LuaJIT.tar.gz"
22-
Remove-Item "LuaJIT.tar.gz"
23-
Set-Location "LuaJIT-2.1.0-beta3"
20+
git clone https://luajit.org/git/luajit.git --branch v2.1 --depth 1
21+
22+
Set-Location "luajit"
2423

2524
mingw32-make.exe
2625

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

3736
Set-Location "$($pwd.Path)\.."
38-
Remove-Item -Recurse -Force "LuaJit-2.1.0-beta3"
37+
Remove-Item -Recurse -Force "luajit"

scripts/buildLuaRocks.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
sudo apt install build-essential libreadline-dev unzip wget
44
wget https://luarocks.org/releases/luarocks-3.11.0.tar.gz
5-
tar -zxpf luarocks-3.811.0.tar.gz
5+
tar -zxpf luarocks-3.11.0.tar.gz
66
rm luarocks-3.11.0.tar.gz
77
cd luarocks-3.11.0
88
./configure

0 commit comments

Comments
 (0)