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...
EditorExportPlatformLinuxBSD¶
继承: EditorExportPlatformPC < EditorExportPlatform < RefCounted < Object
Linux/BSD 导出器。
教程¶
属性¶
属性说明¶
String binary_format/architecture
程序可执行文件架构。
支持的架构有:x86_32
、x86_64
、arm64
、arm32
、rv64
、ppc64
、ppc32
。
官方导出模板中仅包含 x86_32
和 x86_64
的二进制文件。
bool binary_format/embed_pck
如果为 true
,则会将项目资源嵌入到可执行文件中。
String custom_template/debug
到自定义导出模板的路径。如果留空,则默认模板将被使用。
String custom_template/release
到自定义导出模板的路径。如果留空,则默认模板将被使用。
int debug/export_console_wrapper
如果为 true
,则会在导出主可执行文件的同时导出一个控制台封装,能够在运行项目时启用控制台输出。
String ssh_remote_deploy/cleanup_script
应用结束时,要在远程主机上执行的脚本代码。
可以在脚本中使用以下变量:
{temp_dir}
- 远程的临时文件夹路径,用于上传应用和脚本。{archive_name}
- 包含上传的应用程序的 ZIP 文件的名称。{exe_name}
- 应用程序可执行文件的名称。{cmd_args}
- 应用程序命令行参数的数组。
bool ssh_remote_deploy/enabled
启用通过 SSH/SCP 进行远程部署。
String ssh_remote_deploy/extra_args_scp
要传给 SCP 的额外命令行参数的数组。
String ssh_remote_deploy/extra_args_ssh
要传给 SSH 的额外命令行参数的数组。
String ssh_remote_deploy/host
远程主机 SSH 用户名及地址,格式为 用户名@地址
。
String ssh_remote_deploy/port
远程主机 SSH 端口号。
String ssh_remote_deploy/run_script
运行应用时,要在远程主机上执行的脚本代码。
可以在脚本中使用以下变量:
{temp_dir}
- 远程的临时文件夹路径,用于上传应用和脚本。{archive_name}
- 包含上传的应用程序的 ZIP 文件的名称。{exe_name}
- 应用程序可执行文件的名称。{cmd_args}
- 应用程序命令行参数的数组。
bool texture_format/bptc
如果为 true
,则项目中的纹理在导出时使用 BPTC 格式。
bool texture_format/etc
如果为 true
,则项目中的纹理在导出时使用 ETC 格式。
bool texture_format/etc2
如果为 true
,则项目中的纹理在导出时使用 ETC2 格式。
bool texture_format/s3tc
如果为 true
,则项目中的纹理在导出时使用 S3TC 格式。