Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Creating standalone Lua executables

Tags:

windows

lua

Is there an easy way to create standalone .exe files from Lua scripts? Basically this would involve linking the Lua interpreter and the scripts.

I believe it is possible (PLT Scheme allows the creation of standalone executables in the same way), but how, exactly?

like image 388
h3rald Avatar asked Oct 11 '08 19:10

h3rald


People also ask

Can you compile Lua?

Essentially, the main two options are: (1) append your Lua code to a precompiled exe file, such that it will be loaded and executed when that exe file is run, and (2) convert your Lua code into real executable by compiling it to bytecode, then to C, and then to your target platform.

What is Lua EXE?

Lua.exe file information Lua.exe process in Windows Task Manager. The process known as Lua Console Standalone Interpreter belongs to software Kaseya Scripting Component or Kaseya Scripting component or Lua - The Programming Language by Lua.org.


1 Answers

Check out for srlua. It does what you need.

It's from one of the Lua authors. On this address there is also pre-compiled Windows binaries, so that would be even easier for you I think.

like image 69
Edwin Jarvis Avatar answered Oct 06 '22 00:10

Edwin Jarvis