|
@@ -173,9 +173,14 @@ def generateBuildTasks(String flavor = "template", String edition = "standard",
|
|
|
buildTasks += tasks.create(name: copyBinaryTaskName, type: Copy) {
|
|
|
String filenameSuffix = edition == "mono" ? "${edition}${capitalizedTarget}" : target
|
|
|
dependsOn ":app:assemble${capitalizedEdition}${capitalizedTarget}"
|
|
|
- from("app/build/outputs/apk/${edition}/${target}")
|
|
|
+ from("app/build/outputs/apk/${edition}/${target}") {
|
|
|
+ include("android_${filenameSuffix}.apk")
|
|
|
+ }
|
|
|
+ from("app/build/outputs/native-debug-symbols/${edition}${capitalizedTarget}") {
|
|
|
+ include("native-debug-symbols.zip")
|
|
|
+ rename ("native-debug-symbols.zip", "android-template-${edition}-${target}-native-debug-symbols.zip")
|
|
|
+ }
|
|
|
into(binDir)
|
|
|
- include("android_${filenameSuffix}.apk")
|
|
|
}
|
|
|
}
|
|
|
} else {
|
|
@@ -186,9 +191,14 @@ def generateBuildTasks(String flavor = "template", String edition = "standard",
|
|
|
} else {
|
|
|
buildTasks += tasks.create(name: copyEditorApkTaskName, type: Copy) {
|
|
|
dependsOn ":editor:assemble${capitalizedAndroidDistro}${capitalizedTarget}"
|
|
|
- from("editor/build/outputs/apk/${androidDistro}/${target}")
|
|
|
+ from("editor/build/outputs/apk/${androidDistro}/${target}") {
|
|
|
+ include("android_editor-${androidDistro}-${target}*.apk")
|
|
|
+ }
|
|
|
+ from("editor/build/outputs/native-debug-symbols/${androidDistro}${capitalizedTarget}") {
|
|
|
+ include("native-debug-symbols.zip")
|
|
|
+ rename ("native-debug-symbols.zip", "android-editor-${androidDistro}-${target}-native-debug-symbols.zip")
|
|
|
+ }
|
|
|
into(androidEditorBuildsDir)
|
|
|
- include("android_editor-${androidDistro}-${target}*.apk")
|
|
|
}
|
|
|
}
|
|
|
|
|
@@ -270,19 +280,6 @@ task generateGodotMonoTemplates {
|
|
|
finalizedBy 'zipGradleBuild'
|
|
|
}
|
|
|
|
|
|
-/**
|
|
|
- * Generates the same output as generateGodotTemplates but with dev symbols
|
|
|
- */
|
|
|
-task generateDevTemplate {
|
|
|
- // add parameter to set symbols to true
|
|
|
- project.ext.doNotStrip = "true"
|
|
|
-
|
|
|
- gradle.startParameter.excludedTaskNames += templateExcludedBuildTask()
|
|
|
- dependsOn = generateBuildTasks("template")
|
|
|
-
|
|
|
- finalizedBy 'zipGradleBuild'
|
|
|
-}
|
|
|
-
|
|
|
task clean(type: Delete) {
|
|
|
dependsOn 'cleanGodotEditor'
|
|
|
dependsOn 'cleanGodotTemplates'
|
|
@@ -326,11 +323,17 @@ task cleanGodotTemplates(type: Delete) {
|
|
|
|
|
|
// Delete the Godot templates in the Godot bin directory
|
|
|
delete("$binDir/android_debug.apk")
|
|
|
+ delete("$binDir/android-template-standard-debug-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_dev.apk")
|
|
|
+ delete("$binDir/android-template-standard-dev-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_release.apk")
|
|
|
+ delete("$binDir/android-template-standard-release-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_monoDebug.apk")
|
|
|
+ delete("$binDir/android-template-mono-debug-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_monoDev.apk")
|
|
|
+ delete("$binDir/android-template-mono-dev-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_monoRelease.apk")
|
|
|
+ delete("$binDir/android-template-mono-release-native-debug-symbols.zip")
|
|
|
delete("$binDir/android_source.zip")
|
|
|
delete("$binDir/godot-lib.template_debug.aar")
|
|
|
delete("$binDir/godot-lib.template_debug.dev.aar")
|