Exporting for Windows¶
Ver também
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 Compiling for 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.
Requisitos¶
To enable code signing, you must have the
Windows 10 SDK
(on Windows) or osslsigncode (on any other OS) installed.Baixe os modelos de exportação Godot. Use o menu Godot:
Editor > Gerenciar modelos de exportação
.
Aviso
Se você exportar para Windows com arquivos PCK embutidos, você não poderá assinar o programa pois ele irá quebrar.
No Windows, a incorporação do PCK também é conhecida por causar falsos positivos em programas antivírus. Portanto, é recomendável evitar usá-lo a menos que você esteja distribuindo seu projeto via Steam, pois ele ignora a assinatura de código e as verificações de antivírus.