Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Merged
merged 1 commit into from
Jan 8, 2020

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 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