lua-users home
lua-l archive

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


You could do this a couple of ways, but the easiest way would be to create a
static string right in the C source which represents the Lua byte code, link
the lua library, and on main just do lua_dobuffer on the array. You could
even write a system that does this for you, but the system you run it on
would need a C compiler to actually make the exe. I actually toyed around
with adding something like this to my Lua IDE: I am still toying ;)

Matt "Kerion" Holmes
Lead Developer
Lua Studio - The Lua IDE
http://www.sourceforge.net/projects/visuallua/

----- Original Message -----
From: <sessile@in-gen.net>
To: "Multiple recipients of list" <lua-l@tecgraf.puc-rio.br>
Sent: Saturday, September 08, 2001 9:42 AM
Subject: Single file executable distribution?


> How would one go about embedding a Lua script file into the Lua
> standalone interpeter so that the script could be distributed
> (and run!) on machines without Lua being installed separately?
> Any Lua tools similar to Python's py2exe available, perhaps?
>
> Regards,
> Dean.
>