Skip to content
pascalcombierPublic

Repository files navigation

📋 ComEXE

The ComEXE project currently ships one program: lua55ce, a statically linked drop-in replacement for the Lua standalone program with extra command options and built-in libraries. It can turn a Lua script into a standalone executable for Windows x64 or Linux x64, with no C toolchain and no runtime to install.

lua55ce -x --make src\hello.lua --nostdlib # Windows x64, 1.4 MiB

One can also generate executables for different platforms:

lua55ce -x --make src\hello.lua -t x86_64-linux-musl # static
lua55ce -x --make src\hello.lua -t x86_64-linux-gnu  # glibc

Release Platform Lua License: MIT

🚀 Quick start

Download and extract the the latest binary release. For convenience, rename the lua55ce-x86_64.exe to lua55ce.exe.

Check the version

lua55ce -v

Write and execute a Lua script

> mkdir hello
> echo print("Hello World!") > hello\hello.lua
> lua55ce hello\hello.lua
Hello World!

Compile the script

> lua55ce -x --make hello\hello.lua --nostdlib
> hello.exe
Hello World!

List the available targets

> lua55ce -x --list-targets
x86_64-windows
x86_64-windows-dbg
x86_64-windows-gui
x86_64-linux-musl
x86_64-linux-musl-dbg
x86_64-linux-gnu
x86_64-linux-gnu-dbg

Compile for Linux musl:

> lua55ce -x --make hello\hello.lua --nostdlib -t x86_64-linux-musl -o hello-static

🚀 Key features

📘 Guides & Notes

➡️ Next

Releases

Packages

Contributors

Languages