Skip to content
/ luapack Public

LuaPack bundles Lua scripts into a single Linux or Windows executable.

License

Notifications You must be signed in to change notification settings

CDSoft/luapack

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

LuaPack

LuaPack packs Lua scripts together along with a Lua interpretor (Lua 5.4.3) and produces a standalone executable for Linux and Windows.

LuaPack runs on Linux.

LuaPack uses luastatic to generate a single executable.

No Lua interpretor needs to be installed. LuaPack downloads and compiles its own interpretor.

Installation

$ make install    # install luapack to ~/.local/bin

LuaPack is a single autonomous shell script. It does not need to be installed and can be copied anywhere you want.

Usage

Usage: luapack [-h] [-c] [-w] [-o OUTPUT] [-b BUILD_DIR] script(s)

Options:
    -h          show this help
    -c          clean and rebuild the Lua libraries
    -w          generate a Windows binary with mingw
    -o OUTPUT   set the name of the output executable
    -b DIR      set the name of the Lua build directory

The main script shall be the first one. Other scripts are libraries that can be loaded by the main script.

Examples

Linux executable

luapack main.lua lib1.lua lib2.lua -o linux_executable

Running linux_executable is equivalent to running lua main.lua.

Windows executable

luapack main.lua lib1.lua lib2.lua -w -o windows_executable.exe

Running windows_executable.exe is equivalent to running lua.exe main.lua.

About

LuaPack bundles Lua scripts into a single Linux or Windows executable.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published