summaryrefslogtreecommitdiffstats
path: root/platform/ios/export/export_plugin.h
diff options
context:
space:
mode:
authorYuri Sizov <yuris@humnom.net>2023-09-06 14:49:40 +0200
committerYuri Sizov <yuris@humnom.net>2023-09-06 14:49:40 +0200
commit2ced50f310b2ab13249e55bc967a18e100aba321 (patch)
tree4e055628b0a7569a14da4dee028fa7582b8e8239 /platform/ios/export/export_plugin.h
parent3a585a6bcfa7a674ba090c95847ac11bcf410823 (diff)
parent26951000ab4bf8c0588a191490407d7f9e5d8990 (diff)
downloadredot-engine-2ced50f310b2ab13249e55bc967a18e100aba321.tar.gz
Merge pull request #81365 from bruvzg/ios_export_ext
[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.h10
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;