Generate edconfig for each backend

This commit is contained in:
solohsu 2019-03-21 23:48:01 +08:00
parent 5639dc79e0
commit 346254f50b
4 changed files with 10 additions and 12 deletions

View File

@ -81,11 +81,19 @@ afterEvaluate {
workingDir '..' workingDir '..'
commandLine 'sh', 'build.sh', project.name, commandLine 'sh', 'build.sh', project.name,
"${backendLowered}-${project.version}-${variantLowered}", "${module_name}" "${backendLowered}-${project.version}-${variantLowered}", "${module_name}"
doFirst {
copy {
from "${projectDir}/edconfig.tpl"
into templateFrameworkPath
rename "edconfig.tpl", "edconfig.jar"
expand(backend: "$backendCapped")
}
}
} }
task("push${backendCapped}${variantCapped}", type: Exec) { task("push${backendCapped}${variantCapped}", type: Exec) {
dependsOn zipTask dependsOn zipTask
workingDir 'release' workingDir "${projectDir}/release"
def commands = ["adb", "push", def commands = ["adb", "push",
"magisk-${module_name}-${backendLowered}-${project.version}-${variantLowered}.zip", "magisk-${module_name}-${backendLowered}-${project.version}-${variantLowered}.zip",
"/sdcard/"] "/sdcard/"]

View File

@ -1,4 +1,4 @@
version=90.0-sandhook-0.3.1.6-beta-SNAPSHOT version=90.0-0.3.1.6-beta-SNAPSHOT ($backend)
arch=arm64 arch=arm64
minsdk=23 minsdk=23
maxsdk=28 maxsdk=28

View File

@ -1,5 +0,0 @@
version=90.0-0.3.1.6-whale-beta-SNAPSHOT
arch=arm64
minsdk=23
maxsdk=28
requires:fbe_aware=1

View File

@ -1,5 +0,0 @@
version=90.0-yahfa-0.3.1.6-beta-SNAPSHOT
arch=arm64
minsdk=23
maxsdk=28
requires:fbe_aware=1