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

Pass the correct export_format argument to locate the assets directory when exporting #53677

Merged

Conversation

m4gr3d
Copy link
Contributor

@m4gr3d m4gr3d commented Oct 11, 2021

Fix #53328

@m4gr3d m4gr3d added bug platform:android topic:buildsystem cherrypick:3.x Considered for cherry-picking into a future 3.x release topic:export labels Oct 11, 2021
@m4gr3d m4gr3d added this to the 4.0 milestone Oct 11, 2021
@m4gr3d m4gr3d requested a review from a team as a code owner October 11, 2021 15:10
@@ -429,8 +429,7 @@ String EditorExportPlatformAndroid::get_package_name(const String &p_package) co
return pname;
}

String EditorExportPlatformAndroid::get_assets_directory(const Ref<EditorExportPreset> &p_preset) const {
int export_format = int(p_preset->get("custom_template/export_format"));
String EditorExportPlatformAndroid::get_assets_directory(const Ref<EditorExportPreset> &p_preset, int export_format) const {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
String EditorExportPlatformAndroid::get_assets_directory(const Ref<EditorExportPreset> &p_preset, int export_format) const {
String EditorExportPlatformAndroid::get_assets_directory(const Ref<EditorExportPreset> &p_preset, int p_export_format) const {

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nevermind, there's already EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportPreset> &p_preset, bool p_debug, const String &p_path, int export_format, bool should_sign, int p_flags) as signature so it's not strictly needed to change in this PR.

@m4gr3d m4gr3d force-pushed the fix_aab_one_click_deploy_master branch from 4a05aca to 431ccdb Compare October 11, 2021 15:27
@akien-mga akien-mga merged commit 3aa8972 into godotengine:master Oct 11, 2021
@akien-mga
Copy link
Member

Thanks!

@akien-mga
Copy link
Member

Cherry-picked for 3.4.

@akien-mga akien-mga removed the cherrypick:3.x Considered for cherry-picking into a future 3.x release label Oct 11, 2021
@m4gr3d m4gr3d deleted the fix_aab_one_click_deploy_master branch October 11, 2021 16:10
@KinashMaksym
Copy link

I have this problem. You were able to solve it ?

@KinashMaksym
Copy link

Godot v3.4.rc3

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.

Exporting to Android AAB is missing assets (regression from #52526)
3 participants