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...
EditorExportPlatformWindows¶
继承: EditorExportPlatformPC < EditorExportPlatform < RefCounted < Object
Windows 导出器。
教程¶
属性¶
属性说明¶
String application/company_name
出品该程序的公司。必填。见 StringFileInfo。
String application/console_wrapper_icon
控制台封装图标文件。如果留空,则依次回退至 application/icon、ProjectSettings.application/config/windows_native_icon、ProjectSettings.application/config/icon。
String application/copyright
用户可见的捆绑包版权声明。选填。见 StringFileInfo。
int application/export_angle
如果设置为 1
,ANGLE 库将随导出的应用程序一起导出。如果设置为 0
,则仅当 ProjectSettings.rendering/gl_compatibility/driver 被设置为 "opengl3_angle"
时才会导出 ANGLE 库。
String application/file_description
展示给用户的文件说明。必填。见 StringFileInfo。
String application/file_version
文件的版本号。如果留空,则回退到 ProjectSettings.application/config/version。请参阅 StringFileInfo。
String application/icon
应用程序图标文件。如果留空,则会回退至 ProjectSettings.application/config/windows_native_icon,继而回退至 ProjectSettings.application/config/icon。
int application/icon_interpolation
用于调整应用程序图标大小的插值方法。
bool application/modify_resources
如果启用,则会根据 application/*
中的其他值设置导出后可执行文件的图标和元数据。
String application/product_name
应用程序的名称。必填。见 StringFileInfo。
String application/product_version
用户可见的应用程序版本。如果留空,则回退到 ProjectSettings.application/config/version。请参阅 StringFileInfo。
String application/trademarks
适用于该文件的商标及注册商标。选填。见 StringFileInfo。
String binary_format/architecture
应用程序可执行文件的架构。
支持的架构:x86_32
、x86_64
、arm64
。
官方导出模板中仅包含 x86_32
和 x86_64
的二进制文件。
bool binary_format/embed_pck
如果为 true
,则会将项目资源嵌入到可执行文件中。
PackedStringArray codesign/custom_options
要传给代码签名工具的额外命令行参数的数据。见签名工具。
String codesign/description
对被签名内容的描述。见签名工具。
int codesign/digest_algorithm
创建签名所使用的摘要算法。见签名工具。
bool codesign/enable
如果为 true
,则启用可执行文件签名。
String codesign/identity
用于对可执行文件签名的 PKCS #12 证书文件,或证书的 SHA-1 哈希(如果 codesign/identity_type 为 "Use certificate store")。见签名工具。
可以使用环境变量 GODOT_WINDOWS_CODESIGN_IDENTITY
覆盖。
int codesign/identity_type
要使用的身份类型。见签名工具。
可以使用环境变量 GODOT_WINDOWS_CODESIGN_IDENTITY_TYPE
覆盖。
String codesign/password
用于对可执行文件签名的证书文件的密码。见签名工具。
可以使用环境变量 GODOT_WINDOWS_CODESIGN_PASSWORD
覆盖。
bool codesign/timestamp
如果为 true
,则会在签名中添加时间戳。见签名工具。
String codesign/timestamp_server_url
时间戳服务器的 URL。如果留空则使用默认服务器。见签名工具。
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 格式。