From d51999f11d7f6c1b30310a08cde7b12666e673ac Mon Sep 17 00:00:00 2001 From: Marcelo Fernandez Date: Mon, 29 Oct 2018 18:18:49 -0300 Subject: Export for OS X on OS X now lets you select .dmg or .zip --- platform/javascript/export/export.cpp | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'platform/javascript') diff --git a/platform/javascript/export/export.cpp b/platform/javascript/export/export.cpp index 1e47d8db95..7a325e81dd 100644 --- a/platform/javascript/export/export.cpp +++ b/platform/javascript/export/export.cpp @@ -58,7 +58,7 @@ public: virtual Ref get_logo() const; virtual bool can_export(const Ref &p_preset, String &r_error, bool &r_missing_templates) const; - virtual String get_binary_extension(const Ref &p_preset) const; + virtual List get_binary_extensions(const Ref &p_preset) const; virtual Error export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags = 0); virtual bool poll_devices(); @@ -174,9 +174,11 @@ bool EditorExportPlatformJavaScript::can_export(const Ref &p return valid; } -String EditorExportPlatformJavaScript::get_binary_extension(const Ref &p_preset) const { +List EditorExportPlatformJavaScript::get_binary_extensions(const Ref &p_preset) const { - return "html"; + List list; + list.push_back("html"); + return list; } Error EditorExportPlatformJavaScript::export_project(const Ref &p_preset, bool p_debug, const String &p_path, int p_flags) { -- cgit v1.2.3