Files
godot-docs/tutorials/export/exporting_for_linux.rst
Hugo Locurcio c4c6d356cc Link to class reference for each platform that can be exported to
Each page provides a list of all export options for the given platform,
which can be searched through using Ctrl + F. While this information
is also available in the editor by hovering export option names, it can't
be quickly searched through.
2025-03-31 22:17:41 +02:00

41 lines
1.3 KiB
ReStructuredText

.. _doc_exporting_for_linux:
Exporting for Linux
===================
.. seealso::
This page describes how to export a Godot project to Linux.
If you're looking to compile editor or export template binaries from source instead,
read :ref:`doc_compiling_for_linuxbsd`.
The simplest way to distribute a game for PC is to copy the executable
(``godot``), 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 Linux, 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.
Environment variables
---------------------
You can use the following environment variables to set export options outside of
the editor. During the export process, these override the values that you set in
the export menu.
.. list-table:: Linux export environment variables
:header-rows: 1
* - Export option
- Environment variable
* - Encryption / Encryption Key
- ``GODOT_SCRIPT_ENCRYPTION_KEY``
Export options
--------------
You can find a full list of export options available in the
:ref:`class_EditorExportPlatformLinuxBSD` class reference.