创建独立的Lua可执行文件 [英] Creating standalone Lua executables

查看:107
本文介绍了创建独立的Lua可执行文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有一种简便的方法可以从Lua脚本创建独立的.exe文件?基本上,这将涉及链接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.

我相信这是有可能的(PLT Scheme允许以相同的方式创建独立的可执行文件),但是究竟如何呢?

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

推荐答案

查看 srlua .它可以满足您的需求.

Check out for srlua. It does what you need.

来自Lua的一位作者.在该地址上,还预编译了Windows二进制文件,因此我认为这对您来说更加容易.

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.

这篇关于创建独立的Lua可执行文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆