You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-06 12:20:30 +00:00
Add command line support to export pck or zip
This commit is contained in:
@@ -378,9 +378,17 @@ void EditorNode::_fs_changed() {
|
|||||||
// ensures export_project does not loop infinitely, because notifications may
|
// ensures export_project does not loop infinitely, because notifications may
|
||||||
// come during the export
|
// come during the export
|
||||||
export_defer.preset = "";
|
export_defer.preset = "";
|
||||||
|
if (!preset->is_runnable() && (export_defer.path.ends_with(".pck") || export_defer.path.ends_with(".zip"))) {
|
||||||
|
if (export_defer.path.ends_with(".zip")) {
|
||||||
|
platform->save_zip(preset, export_defer.path);
|
||||||
|
} else if (export_defer.path.ends_with(".pck")) {
|
||||||
|
platform->save_pack(preset, export_defer.path);
|
||||||
|
}
|
||||||
|
} else {
|
||||||
platform->export_project(preset, export_defer.debug, export_defer.path, /*p_flags*/ 0);
|
platform->export_project(preset, export_defer.debug, export_defer.path, /*p_flags*/ 0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
get_tree()->quit();
|
get_tree()->quit();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user