Skip to content

Lua to EXE - Utilities to convert a pure Lua 5.3 source with pure Lua library dependencies to a single Lua file, a single C source file, or single stand-alone Windows executable (EXE)

License

Notifications You must be signed in to change notification settings

tonypdmtr/Lua2Exe

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Lua2Exe

Pure Lua command-line utilities to convert pure Lua 5.3 source with possible Lua library dependencies to a single file, C, or EXE

Note: Non-Lua (e.g., C language) dependencies are not supported.

  • onelua.lua converts a pure Lua 5.3 source to a single Lua file without external dependencies.
  • lua2c.lua does the same as onelua but also converts the resulting file to a single file C source ready for compilation.
  • lua2exe.lua does the same as lua2c but also compiles the resulting C source to an EXE under Windows.

(cli and one are library dependencies used by the above utililies.)

The utilities have been tested only under Windows, and may require changes for use under Linux. Standard Lua environment variables will be used unless the -E option is used.

lua2exe.lua contains hard-coded compiler paths using the TinyC compiler (TCC). You may need to modify to match your setup and compiler.

About

Lua to EXE - Utilities to convert a pure Lua 5.3 source with pure Lua library dependencies to a single Lua file, a single C source file, or single stand-alone Windows executable (EXE)

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages