Skip to content

Add a way to add files after exporting all files in an EditorExportPlugin #6284

Open
godotengine/godot
#73276
@Daylily-Zeleen

Description

@Daylily-Zeleen

Describe the project you are working on

A custom build godot engine.

Describe the problem or limitation you are having in your project

I can do some postprocess and add a description fils in the packed file, because of the EditorExportPlugin has not a way to add file after exporting all files.

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

If it is impolemented, I can collect every exported file in _export_file(), then do some postprocess to dump a description file and add it into the packed file after exporting files finished.

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

  1. Add a virtual method _export_files_end() for EditorExportPlugin.
  2. Let it be called after the step of exporting files finished in EditorExportPlatform::export_project_files().
  3. Then add extra files like the step of exporting files( besides add as a remap file).

Here is my implemention 73276.

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

The export workflow is in the core code, we can't change it in script.

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

The same as above.

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