compiling lua script to standalone executable-Collection of common programming errors
I don’t know of any “out-of-the-box” ready for this.
A quite straight forward approach would be to modify the lua interpreter that is shipped with lua to include your custom scripts in the binary (and possibly disable the interactive options of it).
This way you can kick off your script with that executable.
There is a lua2bin (if I remember its name correctly) to convert a lua script to a c-file you may include with your application.