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.

为 Linux 导出

参见

This page describes how to export a Godot project to Linux. If you're looking to compile editor or export template binaries from source instead, read Compiling for Linux, *BSD.

分发 PC 游戏的最简单方法是复制可执行文件(godot),将文件夹压缩并发送给其他人。然而,这往往不够理想。

Godot 在使用导出系统时,为 PC 分发提供了一种更为优雅的方法。为 Linux 导出时,导出器将提取所有项目文件并创建一个 data.pck 文件。该文件与特别优化的二进制文件捆绑在一起,更小、更快,并且不包含编辑器和调试器。

环境变量

You can use the following environment variables to set export options outside of the editor. During the export process, these override the values that you set in the export menu.

Linux export environment variables

Export option

Environment variable

Encryption / Encryption Key

GODOT_SCRIPT_ENCRYPTION_KEY