lua-users home
lua-l archive

Re: Embedding scripts in executable

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


> [1] https://github.com/shmuz/luafar4editor
Mmmm.. Yummy - Gotta try this package. I'm a long time FAR user (and Midnight Commander on Linux/OSX side)
On 10/3/2011 11:26 PM, Shmuel Zeigerman wrote:
On 28/09/2011 00:50, Tim Caswell wrote:
I'm sure this has been done before, but google is not being my friend
when
trying to search for it.
I have a folder full of lua modules (written in lua) and I want them
embedded in my binary at compile/link time in such a way that the require
system can find them.
Is there a cross-platform way to embed these scripts and make
them accessible to require?
I'm using luajit, but I think this question is generic.
I'm maintaining a project [1] where the Makefile has 2 targets:
"noembed" and "embed". The project itself is Windows-only but it isn't
relevant to its method of embedding Lua files.
I believe the source code is self-explanatory; you can contact me
off-list if it isn't.
[1] https://github.com/shmuz/luafar4editor

AltStyle によって変換されたページ (->オリジナル) /