Bundler
Browse docs
You can compile your lua program into single files using lde.
Lua files
Run this to bundle your project and all of its dependencies into a single .lua file
lde bundleNative executables
Using lde’s C compilation support, you can compile your lua program into a native executable.
lde compileThe created executable can run without lua, lde, or any of your dependencies on the user’s system. It just works.
How does it work?
This isn’t a simple “slaps data in a linker section on an existing binary” like many single executable bundlers do (ie Bun or Deno).
It uses the native C compiler lde incorporates to create a new executable linking luajit with any files in your /target folder bundled in as bytecode alongside any native dependencies (.so, .dll).
Cross Compilation
You can also cross compile your program for different platforms using the --target flag.
lde compile --target <target>You can read more at Cross Compilation.