Skip to content

Export: Add dedicated --export-pack option to export data pack#34913

Merged
akien-mga merged 1 commit intogodotengine:masterfrom
akien-mga:main-add-export-pack
Jan 8, 2020
Merged

Export: Add dedicated --export-pack option to export data pack#34913
akien-mga merged 1 commit intogodotengine:masterfrom
akien-mga:main-add-export-pack

Conversation

@akien-mga
Copy link
Member

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.


Slightly breaks compat again, as it's no longer possible to export a data pack with --export or --export-debug, users will now have to use --export-pack. I think it's not a big breakage though and easy to adapt to, if anyone was actively using this hidden misfeature in the first place.

@Calinou Can you make sure to mention both this and the s/custom_package/custom_template/ changes in the changelog?

@akien-mga
Copy link
Member Author

BTW I checked and currently the save_pck and save_zip method both don't make any distinction between debug and release exports, so the PCK/ZIP should be the same.

@Calinou
Copy link
Member

Calinou commented Jan 8, 2020

This is a pretty good idea, it should make things more obvious 🙂

I documented both changes in the changelog.

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 godotengine#23073.
@akien-mga akien-mga force-pushed the main-add-export-pack branch from cbe23d1 to 7c29ce4 Compare January 8, 2020 13:58
@akien-mga akien-mga merged commit 5e4d465 into godotengine:master Jan 8, 2020
@akien-mga akien-mga deleted the main-add-export-pack branch January 8, 2020 14:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Command-line Mac OSX export inconsistent with GUI export

2 participants