Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A bit more user-friendly and added missing files #3

Open
wants to merge 20 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -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
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
input.lua
*.exe
*.dll
16 changes: 16 additions & 0 deletions Compile.cmd
Original file line number Diff line number Diff line change
@@ -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
8 changes: 0 additions & 8 deletions Convert.cmd

This file was deleted.

6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -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.
2 changes: 1 addition & 1 deletion input.lua
Original file line number Diff line number Diff line change
@@ -1 +1 @@
print("This file will be converted into an executable.")
-- This file will be compiled into an executable.
Binary file added lua51.dll
Binary file not shown.
Binary file added ucrtbased.dll
Binary file not shown.