lua-users home
lua-l archive

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


On Fri, Nov 1, 2013 at 11:33 AM, Michael Gerbracht <smartmails@arcor.de> wrote:
> standard lua program into an .exe file so that it runs standalone. But how
> can you do this if the lua script is called from LuaInterface?

The actual scripts can be glued together - for Windows exes they can
saved as a resource, rather than the generic srlua approach. One would
write a custom loader that would lead to require() ending up loading a
script from those resources. But some components will have to be DLLs
and a reasonably intelligent installer can handle that issue.

There's a similar issue with packaging LuaJava applications, and
generally any JVM program that depends on JNI and needs to load
external libraries.

steve d.