Exporting for Windows

См.также

This page describes how to export a Godot project to Windows. If you're looking to compile editor or export template binaries from source instead, read Компиляция под Windows.

The simplest way to distribute a game for PC is to copy the executable (godot.exe), compress the folder and send it to someone else. However, this is often not desired.

Godot offers a more elegant approach for PC distribution when using the export system. When exporting for Windows, the exporter takes all the project files and creates a data.pck file. This file is bundled with a specially optimized binary that is smaller, faster and does not contain the editor and debugger.

Требования

  • To enable code signing, you must have the Windows 10 SDK (on Windows) or osslsigncode (on any other OS) installed.

  • Загрузите шаблоны экспорта Godot. Используйте меню Godot: Editor > Manage Export Templates.

Предупреждение

Если вы экспортируете для Windows со встроенными файлами PCK, вы не сможете подписать программу, так как она сломается.

В Windows встраивание PCK также может вызывать ложные срабатывания антивирусных программ. Поэтому рекомендуется избегать его использования, если вы не распространяете свой проект через Steam, поскольку он позволяет обходить подписывание кода и антивирусные проверки.