Attention: Here be dragons
This is the latest
(unstable) version of this documentation, which may document features
not available in or compatible with released stable versions of Godot.
Checking the stable version of the documentation...
为 Linux 导出
参见
本页面描述的是如何将 Godot 项目导出到 Linux。如果你想要从源码编译编辑器或导出模板二进制文件,请移步《为 Linux、*BSD 平台编译》。
分发 PC 游戏的最简单方法是复制可执行文件(godot
),将文件夹压缩并发送给其他人。然而,这往往不够理想。
Godot 在使用导出系统时,为 PC 分发提供了一种更为优雅的方法。为 Linux 导出时,导出器将提取所有项目文件并创建一个 data.pck
文件。该文件与特别优化的二进制文件捆绑在一起,更小、更快,并且不包含编辑器和调试器。
环境变量
你可以使用以下环境变量在编辑器外部设置导出选项。在导出过程中,这些值会覆盖你在导出菜单中设置的值。
导出选项 |
环境变量 |
---|---|
加密 / 密钥 |
|
导出选项
You can find a full list of export options available in the EditorExportPlatformLinuxBSD class reference.