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

查看:30
本文介绍了创建独立的 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天全站免登陆