Skip to content

Commit 66abe27

Browse files
committed
Add lua51-dev (.dll, .lib and include files) for installation with lua51
1 parent e56350a commit 66abe27

File tree

1 file changed

+10
-1
lines changed

1 file changed

+10
-1
lines changed

.appveyor/install-lua.cmd

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
REM https://github.com/bluebird75/luaunit/blob/80e5b37e0f3e0016dcf7dff0004a4d065cd4ee61/.appveyor/install-lua.cmd
1+
REM based on https://github.com/bluebird75/luaunit/blob/80e5b37e0f3e0016dcf7dff0004a4d065cd4ee61/.appveyor/install-lua.cmd
22
REM BSD license: https://github.com/bluebird75/luaunit/blob/7382208f9e7ff433e0bf3feeb1990bcab1de9877/LICENSE.txt
33

44
REM This is a batch file to help with setting up the desired Lua environment.
@@ -11,6 +11,7 @@ set VER_53=5.3.3
1111
set ZIP_51=lua-%VER_51%_Win32_bin.zip
1212
set ZIP_52=lua-%VER_52%_Win32_bin.zip
1313
set ZIP_53=lua-%VER_53%_Win32_bin.zip
14+
set ZIP_51_DEV=lua-%VER_51%_Win32_dll15_lib.zip
1415

1516
:cinst
1617
@echo off
@@ -39,6 +40,14 @@ if NOT EXIST "lua51\lua5.1.exe" (
3940
) else (
4041
echo Using cached version of Lua v5.1
4142
)
43+
if NOT EXIST "lua51\lua5.1.lib" (
44+
@echo on
45+
echo Fetching Lua_DEV v5.1 from internet
46+
curl -fLsS -o %ZIP_51_DEV% http://sourceforge.net/projects/luabinaries/files/%VER_51%/Windows%20Libraries/Dynamic/%ZIP_51_DEV%/download
47+
unzip -d lua51 %ZIP_51_DEV%
48+
) else (
49+
echo Using cached version of Lua_DEV v5.1
50+
)
4251
set LUA=lua51\lua5.1.exe
4352
@echo off
4453
goto :EOF

0 commit comments

Comments
 (0)