exporting_for_windows.rst 1.4 KB

123456789101112131415161718192021222324252627282930313233343536
  1. .. _doc_exporting_for_windows:
  2. Exporting for Windows
  3. =====================
  4. .. seealso::
  5. This page describes how to export a Godot project to Windows.
  6. If you're looking to compile editor or export template binaries from source instead,
  7. read :ref:`doc_compiling_for_windows`.
  8. The simplest way to distribute a game for PC is to copy the executable
  9. (``godot.exe``), compress the folder and send it to someone else. However, this
  10. is often not desired.
  11. Godot offers a more elegant approach for PC distribution when using the export
  12. system. When exporting for Windows, the exporter takes all the project files and
  13. creates a ``data.pck`` file. This file is bundled with a specially optimized
  14. binary that is smaller, faster and does not contain the editor and debugger.
  15. Requirements
  16. ------------
  17. - To enable code signing, you must have the ``Windows 10 SDK`` (on Windows) or `osslsigncode <https://github.com/mtrojnar/osslsigncode>`__ (on any other OS) installed.
  18. - Download the Godot export templates. Use the Godot menu: ``Editor > Manage Export Templates``.
  19. .. warning::
  20. If you export for Windows with embedded PCK files, you will not be able to
  21. sign the program as it will break.
  22. On Windows, PCK embedding is also known to cause false positives in
  23. antivirus programs. Therefore, it's recommended to avoid using it unless
  24. you're distributing your project via Steam as it bypasses code signing and
  25. antivirus checks.