You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-04 12:00:25 +00:00
Merge pull request #91271 from m4gr3d/clean_gradle_build_setup
Clean up the gradle build logic used to generate the Godot Android binaries
This commit is contained in:
@@ -3270,18 +3270,17 @@ Error EditorExportPlatformAndroid::export_project_helper(const Ref<EditorExportP
|
||||
}
|
||||
|
||||
List<String> copy_args;
|
||||
String copy_command;
|
||||
if (export_format == EXPORT_FORMAT_AAB) {
|
||||
copy_command = vformat("copyAndRename%sAab", build_type);
|
||||
} else if (export_format == EXPORT_FORMAT_APK) {
|
||||
copy_command = vformat("copyAndRename%sApk", build_type);
|
||||
}
|
||||
|
||||
String copy_command = "copyAndRenameBinary";
|
||||
copy_args.push_back(copy_command);
|
||||
|
||||
copy_args.push_back("-p"); // argument to specify the start directory.
|
||||
copy_args.push_back(build_path); // start directory.
|
||||
|
||||
copy_args.push_back("-Pexport_build_type=" + build_type.to_lower());
|
||||
|
||||
String export_format_arg = export_format == EXPORT_FORMAT_AAB ? "aab" : "apk";
|
||||
copy_args.push_back("-Pexport_format=" + export_format_arg);
|
||||
|
||||
String export_filename = p_path.get_file();
|
||||
String export_path = p_path.get_base_dir();
|
||||
if (export_path.is_relative_path()) {
|
||||
|
||||
Reference in New Issue
Block a user