[Editor] LinuxBSD export reports Linux as OS name.

This is in line with what's reported by the `OS` class on GNU/Linux, and
is required by the extension exporter to identify the correct library.

For BSD, we should either finish splitting the platform (into
platform/bsd) or register a separate exporter with OS name BSD and
proper templates detection.
This commit is contained in:
Fabio Alessandrelli 2022-05-24 10:09:50 +02:00
parent cf39f36685
commit 9c2b5ae5ce

View file

@ -44,7 +44,7 @@ void register_linuxbsd_exporter() {
platform->set_name("Linux/X11"); platform->set_name("Linux/X11");
platform->set_extension("x86_32"); platform->set_extension("x86_32");
platform->set_extension("x86_64", "binary_format/64_bits"); platform->set_extension("x86_64", "binary_format/64_bits");
platform->set_os_name("LinuxBSD"); platform->set_os_name("Linux");
platform->set_chmod_flags(0755); platform->set_chmod_flags(0755);
EditorExport::get_singleton()->add_export_platform(platform); EditorExport::get_singleton()->add_export_platform(platform);