Files
godot-docs-l10n/classes/zh_CN/class_editorexportplatformlinuxbsd.rst

267 lines
12 KiB
ReStructuredText

:github_url: hide
.. DO NOT EDIT THIS FILE!!!
.. Generated automatically from Godot engine sources.
.. Generator: https://github.com/godotengine/godot/tree/4.4/doc/tools/make_rst.py.
.. XML source: https://github.com/godotengine/godot/tree/4.4/platform/linuxbsd/doc_classes/EditorExportPlatformLinuxBSD.xml.
.. _class_EditorExportPlatformLinuxBSD:
EditorExportPlatformLinuxBSD
============================
**继承:** :ref:`EditorExportPlatformPC<class_EditorExportPlatformPC>` **<** :ref:`EditorExportPlatform<class_EditorExportPlatform>` **<** :ref:`RefCounted<class_RefCounted>` **<** :ref:`Object<class_Object>`
Linux/BSD 导出器。
.. rst-class:: classref-introduction-group
教程
----
- :doc:`为 Linux 导出 <../tutorials/export/exporting_for_linux>`
.. rst-class:: classref-reftable-group
属性
----
.. table::
:widths: auto
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`binary_format/architecture<class_EditorExportPlatformLinuxBSD_property_binary_format/architecture>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`binary_format/embed_pck<class_EditorExportPlatformLinuxBSD_property_binary_format/embed_pck>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`custom_template/debug<class_EditorExportPlatformLinuxBSD_property_custom_template/debug>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`custom_template/release<class_EditorExportPlatformLinuxBSD_property_custom_template/release>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`int<class_int>` | :ref:`debug/export_console_wrapper<class_EditorExportPlatformLinuxBSD_property_debug/export_console_wrapper>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/cleanup_script<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/cleanup_script>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`ssh_remote_deploy/enabled<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/enabled>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/extra_args_scp<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_scp>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/extra_args_ssh<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_ssh>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/host<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/host>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/port<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/port>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`String<class_String>` | :ref:`ssh_remote_deploy/run_script<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/run_script>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`texture_format/etc2_astc<class_EditorExportPlatformLinuxBSD_property_texture_format/etc2_astc>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
| :ref:`bool<class_bool>` | :ref:`texture_format/s3tc_bptc<class_EditorExportPlatformLinuxBSD_property_texture_format/s3tc_bptc>` |
+-----------------------------+-----------------------------------------------------------------------------------------------------------------------+
.. rst-class:: classref-section-separator
----
.. rst-class:: classref-descriptions-group
属性说明
--------
.. _class_EditorExportPlatformLinuxBSD_property_binary_format/architecture:
.. rst-class:: classref-property
:ref:`String<class_String>` **binary_format/architecture** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_binary_format/architecture>`
程序可执行文件架构。
支持的架构有:\ ``x86_32``\ 、\ ``x86_64``\ 、\ ``arm64``\ 、\ ``arm32``\ 、\ ``rv64``\ 、\ ``ppc64``\ 、\ ``ppc32``\ 、\ ``loongarch64``\ 。
官方导出模板中仅包含 ``x86_32``\ 、\ ``x86_64``\ 、\ ``arm32``\ 、\ ``arm64`` 的二进制文件。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_binary_format/embed_pck:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **binary_format/embed_pck** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_binary_format/embed_pck>`
如果为 ``true``\ ,则会将项目资源嵌入到可执行文件中。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_custom_template/debug:
.. rst-class:: classref-property
:ref:`String<class_String>` **custom_template/debug** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_custom_template/debug>`
到自定义导出模板的路径。如果留空,则默认模板将被使用。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_custom_template/release:
.. rst-class:: classref-property
:ref:`String<class_String>` **custom_template/release** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_custom_template/release>`
到自定义导出模板的路径。如果留空,则默认模板将被使用。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_debug/export_console_wrapper:
.. rst-class:: classref-property
:ref:`int<class_int>` **debug/export_console_wrapper** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_debug/export_console_wrapper>`
如果为 ``true``\ ,则会在导出主可执行文件的同时导出一个控制台封装,能够在运行项目时启用控制台输出。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/cleanup_script:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/cleanup_script** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/cleanup_script>`
应用结束时,要在远程主机上执行的脚本代码。
可以在脚本中使用以下变量:
- ``{temp_dir}`` - 远程的临时文件夹路径,用于上传应用和脚本。
- ``{archive_name}`` - 包含上传的应用程序的 ZIP 文件的名称。
- ``{exe_name}`` - 应用程序可执行文件的名称。
- ``{cmd_args}`` - 应用程序命令行参数的数组。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/enabled:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **ssh_remote_deploy/enabled** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/enabled>`
启用通过 SSH/SCP 进行远程部署。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_scp:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/extra_args_scp** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_scp>`
要传给 SCP 的额外命令行参数的数组。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_ssh:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/extra_args_ssh** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/extra_args_ssh>`
要传给 SSH 的额外命令行参数的数组。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/host:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/host** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/host>`
远程主机 SSH 用户名及地址,格式为 ``用户名@地址``\ 。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/port:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/port** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/port>`
远程主机 SSH 端口号。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/run_script:
.. rst-class:: classref-property
:ref:`String<class_String>` **ssh_remote_deploy/run_script** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_ssh_remote_deploy/run_script>`
运行应用时,要在远程主机上执行的脚本代码。
可以在脚本中使用以下变量:
- ``{temp_dir}`` - 远程的临时文件夹路径,用于上传应用和脚本。
- ``{archive_name}`` - 包含上传的应用程序的 ZIP 文件的名称。
- ``{exe_name}`` - 应用程序可执行文件的名称。
- ``{cmd_args}`` - 应用程序命令行参数的数组。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_texture_format/etc2_astc:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **texture_format/etc2_astc** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_texture_format/etc2_astc>`
如果为 ``true``\ ,则项目中的纹理在导出时使用 ETC2/ASTC 格式。
.. rst-class:: classref-item-separator
----
.. _class_EditorExportPlatformLinuxBSD_property_texture_format/s3tc_bptc:
.. rst-class:: classref-property
:ref:`bool<class_bool>` **texture_format/s3tc_bptc** :ref:`🔗<class_EditorExportPlatformLinuxBSD_property_texture_format/s3tc_bptc>`
如果为 ``true``\ ,则项目中的纹理在导出时使用 S3TC/BPTC 格式。
.. |virtual| replace:: :abbr:`virtual (本方法通常需要用户覆盖才能生效。)`
.. |const| replace:: :abbr:`const (本方法无副作用,不会修改该实例的任何成员变量。)`
.. |vararg| replace:: :abbr:`vararg (本方法除了能接受在此处描述的参数外,还能够继续接受任意数量的参数。)`
.. |constructor| replace:: :abbr:`constructor (本方法用于构造某个类型。)`
.. |static| replace:: :abbr:`static (调用本方法无需实例,可直接使用类名进行调用。)`
.. |operator| replace:: :abbr:`operator (本方法描述的是使用本类型作为左操作数的有效运算符。)`
.. |bitfield| replace:: :abbr:`BitField (这个值是由下列位标志构成位掩码的整数。)`
.. |void| replace:: :abbr:`void (无返回值。)`