mirror of
https://github.com/godotengine/godot.git
synced 2026-01-06 10:11:57 +03:00
Export: Add dedicated --export-pack option to export data pack
The previous behavior relying on the provided extension was problematic on macOS since .zip is the main extension used for the full project export (binary + data pack). We add a dedicated `--export-pack` command line option to define when only the data pack should be exported. Its extension will still be inferred from the path. Fixes #23073.
This commit is contained in:
@@ -558,6 +558,7 @@ private:
|
||||
String preset;
|
||||
String path;
|
||||
bool debug;
|
||||
bool pack_only;
|
||||
} export_defer;
|
||||
|
||||
bool disable_progress_dialog;
|
||||
@@ -779,7 +780,7 @@ public:
|
||||
|
||||
void _copy_warning(const String &p_str);
|
||||
|
||||
Error export_preset(const String &p_preset, const String &p_path, bool p_debug);
|
||||
Error export_preset(const String &p_preset, const String &p_path, bool p_debug, bool p_pack_only);
|
||||
|
||||
static void register_editor_types();
|
||||
static void unregister_editor_types();
|
||||
|
||||
Reference in New Issue
Block a user