Fixing zipalign arguments

This commit is contained in:
Drew Heavner
2019-11-08 17:32:56 -05:00
parent cc14b0e221
commit 0934e7337c
2 changed files with 15 additions and 2 deletions
+7 -1
View File
@@ -35,7 +35,7 @@ function signApkFile(apkFile, signingKeyFile, alias, keyStorePassword, keyPasswo
// Align the apk file
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
yield exec.exec(`"${zipAlign}"`, [
'-v', '-p 4',
'-v', '-p', '4',
apkFile,
alignedApkFile
]);
@@ -51,6 +51,12 @@ function signApkFile(apkFile, signingKeyFile, alias, keyStorePassword, keyPasswo
'--out', signedApkFile,
alignedApkFile
]);
// Verify
core.debug("Verifying Signed APK");
yield exec.exec(`"${apkSigner}"`, [
'verify',
signedApkFile
]);
return signedApkFile;
});
}
+8 -1
View File
@@ -28,7 +28,7 @@ export async function signApkFile(
// Align the apk file
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
await exec.exec(`"${zipAlign}"`, [
'-v', '-p 4',
'-v', '-p', '4',
apkFile,
alignedApkFile
]);
@@ -48,6 +48,13 @@ export async function signApkFile(
alignedApkFile
]);
// Verify
core.debug("Verifying Signed APK");
await exec.exec(`"${apkSigner}"`, [
'verify',
signedApkFile
]);
return signedApkFile
}