mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-10-03 10:01:34 +00:00
Fixing zipalign arguments
This commit is contained in:
2 files changed
+15
-2
No files matched your search
+7
-1
@@ -35,7 +35,7 @@ function signApkFile(apkFile, signingKeyFile, alias, keyStorePassword, keyPasswo
|
|||||||
// Align the apk file
|
// Align the apk file
|
||||||
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
|
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
|
||||||
yield exec.exec(`"${zipAlign}"`, [
|
yield exec.exec(`"${zipAlign}"`, [
|
||||||
'-v', '-p 4',
|
'-v', '-p', '4',
|
||||||
apkFile,
|
apkFile,
|
||||||
alignedApkFile
|
alignedApkFile
|
||||||
]);
|
]);
|
||||||
@@ -51,6 +51,12 @@ function signApkFile(apkFile, signingKeyFile, alias, keyStorePassword, keyPasswo
|
|||||||
'--out', signedApkFile,
|
'--out', signedApkFile,
|
||||||
alignedApkFile
|
alignedApkFile
|
||||||
]);
|
]);
|
||||||
|
// Verify
|
||||||
|
core.debug("Verifying Signed APK");
|
||||||
|
yield exec.exec(`"${apkSigner}"`, [
|
||||||
|
'verify',
|
||||||
|
signedApkFile
|
||||||
|
]);
|
||||||
return signedApkFile;
|
return signedApkFile;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
+8
-1
@@ -28,7 +28,7 @@ export async function signApkFile(
|
|||||||
// Align the apk file
|
// Align the apk file
|
||||||
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
|
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
|
||||||
await exec.exec(`"${zipAlign}"`, [
|
await exec.exec(`"${zipAlign}"`, [
|
||||||
'-v', '-p 4',
|
'-v', '-p', '4',
|
||||||
apkFile,
|
apkFile,
|
||||||
alignedApkFile
|
alignedApkFile
|
||||||
]);
|
]);
|
||||||
@@ -48,6 +48,13 @@ export async function signApkFile(
|
|||||||
alignedApkFile
|
alignedApkFile
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Verify
|
||||||
|
core.debug("Verifying Signed APK");
|
||||||
|
await exec.exec(`"${apkSigner}"`, [
|
||||||
|
'verify',
|
||||||
|
signedApkFile
|
||||||
|
]);
|
||||||
|
|
||||||
return signedApkFile
|
return signedApkFile
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user