Skip to content

Add a way to export project from code #13865

@DexterFstone

Description

@DexterFstone

Describe the project you are working on

An online multiplayer game that needs to use patches

Describe the problem or limitation you are having in your project

In my project, I want to be able to create a patch using EditorPlugin for my remote update system.

  1. Create a patch for the entire project
  2. Merge new changes into the project
  3. Create another patch and push it to the remote with custom naming/build number/datetime

Describe the feature / enhancement and how it helps to overcome the problem or limitation

I think adding the Export API to EditorInterface helps to export a project and create a patch with a few lines of code

Describe how your proposal will work, with code, pseudo-code, mock-ups, and/or diagrams

void export_pck_zip_to_path(const String &p_path, bool p_debug, bool p_patch);
void export_project_to_path(const String &p_path, bool p_debug);
void export_all(bool p_debug);
void add_preset(int p_platform);
void select_preset(int p_index);
void remove_preset(int p_index);
int get_preset_count();
void add_patch_file(const String &p_path);
void remove_patch_file(const String &p_path);
TypedArray<String> get_patch_files();

If this enhancement will not be used often, can it be worked around with a few lines of script?

N/A

Is there a reason why this should be core and not an add-on in the asset library?

N/A

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions