diff options
author | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-09-06 11:58:43 +0300 |
---|---|---|
committer | bruvzg <7645683+bruvzg@users.noreply.github.com> | 2023-09-06 11:58:43 +0300 |
commit | 26951000ab4bf8c0588a191490407d7f9e5d8990 (patch) | |
tree | d680d06c2ade3343cdb206a92475cbce49e956ff /platform/ios/export/export_plugin.h | |
parent | 0a7f75ec7b465604b6496c8f5f1d638aed250d6d (diff) | |
download | redot-engine-26951000ab4bf8c0588a191490407d7f9e5d8990.tar.gz |
[iOS export] Switch export target extension based on export type.
Diffstat (limited to 'platform/ios/export/export_plugin.h')
-rw-r--r-- | platform/ios/export/export_plugin.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/platform/ios/export/export_plugin.h b/platform/ios/export/export_plugin.h index 7de4c0b69d..27a4d73fcd 100644 --- a/platform/ios/export/export_plugin.h +++ b/platform/ios/export/export_plugin.h @@ -181,9 +181,17 @@ public: virtual List<String> get_binary_extensions(const Ref<EditorExportPreset> &p_preset) const override { List<String> list; - list.push_back("ipa"); + if (p_preset.is_valid()) { + bool project_only = p_preset->get("application/export_project_only"); + if (project_only) { + list.push_back("xcodeproj"); + } else { + list.push_back("ipa"); + } + } return list; } + virtual Error export_project(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int p_flags = 0) override; virtual bool has_valid_export_configuration(const Ref<EditorExportPreset> &p_preset, String &r_error, bool &r_missing_templates, bool p_debug = false) const override; |