diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..650214b --- /dev/null +++ b/.gitattributes @@ -0,0 +1,5 @@ +input.lua -linguist-detectable +lua51.dll linguist-language=C +vcruntime140d.dll linguist-language=C++ +srlua.exe linguist-language=C +glue.exe linguist-language=C diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..de62cfa --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +input.lua +*.exe +*.dll diff --git a/Compile.cmd b/Compile.cmd new file mode 100644 index 0000000..743c51a --- /dev/null +++ b/Compile.cmd @@ -0,0 +1,16 @@ +@echo off +title Compiler +if %errorLevel% == 0 ( + cd /d "%~dp0" +) +:q +cls +echo Compiling... +glue.exe srlua.exe input.lua output.exe +echo. +echo Finished. +echo Press 1 to refresh input.lua and compile again +echo Press any other key to exit +set /p opt= +if %opt%==1 goto q +exit \ No newline at end of file diff --git a/Convert.cmd b/Convert.cmd deleted file mode 100644 index 2b4eecf..0000000 --- a/Convert.cmd +++ /dev/null @@ -1,8 +0,0 @@ -:q: -@echo off -echo Converting... -glue.exe srlua.exe input.lua output.exe -echo Finished. You may close this window now. -echo Press any key to re-convert . . . -pause > nul -goto q diff --git a/README.md b/README.md index 7c02a4d..a596c89 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ # Lua To EXE -Export/Compile .lua files to .exe files. -Tested with https://github.com/rjpcomputing/luaforwindows/releases +Export/Compile .lua files into .exe files. +Tested with [Lua For Windows (Stable release)](https://github.com/rjpcomputing/luaforwindows/releases) -You don't need lua to convert, but you do need lua to run the converted files. +You don't need lua to compile, but you do need lua to run the compiled files. diff --git a/input.lua b/input.lua index 2f41955..a0a85ce 100644 --- a/input.lua +++ b/input.lua @@ -1 +1 @@ -print("This file will be converted into an executable.") +-- This file will be compiled into an executable. diff --git a/lua51.dll b/lua51.dll new file mode 100644 index 0000000..bc90334 Binary files /dev/null and b/lua51.dll differ diff --git a/ucrtbased.dll b/ucrtbased.dll new file mode 100644 index 0000000..78cfcfe Binary files /dev/null and b/ucrtbased.dll differ