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.

EditorExportPlatformWindows

繼承: EditorExportPlatformPC < EditorExportPlatform < RefCounted < Object

Windows 匯出器。

說明

Windows 匯出器可以自訂 Windows 建置的處理方法。在編輯器的“匯出”視窗中,匯出器是在新增“Windows”預設時建立的。

教學

屬性

String

application/company_name

String

application/console_wrapper_icon

String

application/copyright

bool

application/d3d12_agility_sdk_multiarch

int

application/export_angle

int

application/export_d3d12

String

application/file_description

String

application/file_version

String

application/icon

int

application/icon_interpolation

bool

application/modify_resources

String

application/product_name

String

application/product_version

String

application/trademarks

String

binary_format/architecture

bool

binary_format/embed_pck

PackedStringArray

codesign/custom_options

String

codesign/description

int

codesign/digest_algorithm

bool

codesign/enable

String

codesign/identity

int

codesign/identity_type

String

codesign/password

bool

codesign/timestamp

String

codesign/timestamp_server_url

String

custom_template/debug

String

custom_template/release

int

debug/export_console_wrapper

int

debug/export_debug_symbols

bool

shader_baker/enabled

String

ssh_remote_deploy/cleanup_script

bool

ssh_remote_deploy/enabled

String

ssh_remote_deploy/extra_args_scp

String

ssh_remote_deploy/extra_args_ssh

String

ssh_remote_deploy/host

String

ssh_remote_deploy/port

String

ssh_remote_deploy/run_script

bool

texture_format/etc2_astc

bool

texture_format/s3tc_bptc


屬性說明

String application/company_name 🔗

出品該程式的公司。必填。見 StringFileInfo。


String application/console_wrapper_icon 🔗

控制台封裝圖示檔。如果留空,則依次退回至 application/icon、ProjectSettings.application/config/windows_native_icon、ProjectSettings.application/config/icon。


使用者可見的組合包版權宣告。選填。見 StringFileInfo。


bool application/d3d12_agility_sdk_multiarch 🔗

如果為 true 並且設定了 application/export_d3d12,則 Agility SDK DLL 將被儲存在特定於架構的子目錄中。


int application/export_angle 🔗

如果設定為1,則ANGLE 函式庫將隨匯出的應用程式一起匯出。如果設定為0,則匯出ANGLE 函式庫僅當 ProjectSettings.rendering/gl_compatibility/driver 設定為 "opengl3_angle".


int application/export_d3d12 🔗

如果設定為 1,Direct3D 12 執行階段函式庫(Agility SDK、PIX)將隨匯出的應用程式一起匯出。如果設定為 0,則僅當 ProjectSettings.rendering/rendering_device/driver 被設定為 "d3d12" 時,才會匯出 Direct3D 12 庫。


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。


bool binary_format/embed_pck 🔗

如果為 true,則會將專案資源嵌入到可執行檔中。


PackedStringArray codesign/custom_options 🔗

要傳給程式碼簽章工具的額外命令列參數的資料。見簽章工具。

Note: The returned array is copied and any changes to it will not update the original property value. See PackedStringArray for more details.


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,則會在匯出主可執行檔的同時匯出一個控制台封裝可執行檔,能夠在運作專案時啟用控制台輸出。


int debug/export_debug_symbols 🔗

If true, a debug symbol file (.debugsymbols) is exported alongside the main executable.

Note: This requires a separate debug symbols file. This file must have the same name as the export template binary and an additional .debugsymbols extension, and must be present in the same directory as the export template binary, or in a ZIP archive with a .debugsymbols.zip extension.

Note: If debug symbols are embedded in the export template binary, they will remain embedded in the exported project binary regardless of this option, so it should be disabled in that case.


bool shader_baker/enabled 🔗

如果為 true,則著色器將被編譯並嵌入到應用程式中。此選項僅當使用 Forward+ 或 Mobile 渲染器時才受支援。

注意:匯出為專用伺服器時,由於不執行渲染,著色器烘焙器將始終被停用。


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/etc2_astc 🔗

如果為 true,則專案中的紋理在匯出時使用 ETC2/ASTC 格式。


bool texture_format/s3tc_bptc 🔗

如果為 true,則專案中的紋理在匯出時使用 S3TC/BPTC 格式。