lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]

I use this Lua script[1] I made to combine all Lua dependencies into a single Lua script. It automatically scans the Lua program being packaged and its dependencies recursively and includes all the Lua code and also copies over all the dynamic libraries to a specified directory to create a self contained package containing just 1 Lua file. 
     Finally I usually just make it an executable using salsa.


On Mon, Jul 26, 2021, 4:19 AM Peter Hickman <> wrote:
Thanks for this, it is very interesting but at the moment I don't want files I have forgotten to include in the build from being picked up. As the only time I will notice that I have forgotten to include something is when I try to deploy it

Having said that when things get bigger (and the edit, build, compile loop takes longer) this technique looks interesting. Perhaps I should include a switch for development vs production?

Again thank for sharing this