Hi folks,
This is probably very easy, but I can't seem to see how to do it. I
have a complete project of ~12 .lua files that I want to distribute.
Windows platform. Assume destination has lua.exe and luac.exe
I thought the answer was to:
luac -o myfile.luac file1.lua file2.lua file3.lua .... file12.lua
That creates "myfile.luac" that appears to be all the files together.
However, if I copy this file to a new directory, and execute:
lua myfile.luac
I get an error like:
lua: cannot read compat.lua: No such file or directory
stack traceback:
[C]: in function `dofile'
all.lua:9: in main chunk
(luac): in main chunk
[C]: ?
(compat.lua is one of the files in my project).
What am I missing here?
TIA
Mike