xmake support for local signing again

This commit is contained in:
Axel Uhl committed 2021-11-19 13:18:13 +01:00
1 parent 56336e91eb
commit 4cc8e34c95
1 file changed
+5 -6
+5 -6
View File
@@ -57,7 +57,7 @@ if (new File(SIGN_DOCKER_FILE_PY).exists()){
//don't align the already signed apks anymore
//assert execute(zipalign.absolutePath, "-v", "4", apkUnsigned, apkToDeploy) == 0
//assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
def deployable = new File(apkToDeploy)
def expectedLocation = new File("$gendir/$name")
@@ -66,13 +66,12 @@ if (new File(SIGN_DOCKER_FILE_PY).exists()){
} else {
// snapshot and milestone builds are not eligible for central signing
repodir.traverse(type : FILES, nameFilter: ~/.*unsigned*.*${apkExtension}/) { apkFile ->
//def apkToDeploy = "$gendir/${apkFile.getName()}"
def apkToDeploy = "$gendir/${apkFile.getName()}"
def apkToSign = apkFile.getAbsolutePath()
def apkToDeploy = apkToSign
//println "Execute APK local signing ..."
//assert execute(apksigner.absolutePath, "sign", "--ks", "${CODESIGN_TOOL_DIR}/localSigningKeystore-1.0.0.jks", "--ks-pass", "pass:localSigningPassword", "-in", "${apkToSign}", "-out", "${apkToDeploy}" ) == 0
//assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
println "Execute APK local signing ..."
assert execute(apksigner.absolutePath, "sign", "--ks", "${CODESIGN_TOOL_DIR}/localSigningKeystore-1.0.0.jks", "--ks-pass", "pass:localSigningPassword", "-in", "${apkToSign}", "-out", "${apkToDeploy}" ) == 0
assert execute(apksigner.absolutePath, "verify", "--print-certs", apkToDeploy) == 0
}
}