mirror of
https://github.com/r0adkll/sign-android-release
synced 2026-09-25 22:28:37 +00:00
Test for Android gradle plugin 4.1.0
This commit is contained in:
+7
-2
@@ -15,7 +15,7 @@ export async function signApkFile(
|
||||
core.debug("Zipaligning APK file");
|
||||
|
||||
// Find zipalign executable
|
||||
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '29.0.2';
|
||||
const buildToolsVersion = process.env.BUILD_TOOLS_VERSION || '29.0.3';
|
||||
const androidHome = process.env.ANDROID_HOME;
|
||||
const buildTools = path.join(androidHome!, `build-tools/${buildToolsVersion}`);
|
||||
if (!fs.existsSync(buildTools)) {
|
||||
@@ -28,7 +28,12 @@ export async function signApkFile(
|
||||
// Align the apk file
|
||||
const alignedApkFile = apkFile.replace('.apk', '-aligned.apk');
|
||||
await exec.exec(`"${zipAlign}"`, [
|
||||
'-c',
|
||||
'-v', '4',
|
||||
apkFile
|
||||
]);
|
||||
|
||||
await exec.exec(`"cp"`, [
|
||||
apkFile,
|
||||
alignedApkFile
|
||||
]);
|
||||
@@ -90,4 +95,4 @@ export async function signAabFile(
|
||||
await exec.exec(`"${jarSignerPath}"`, args);
|
||||
|
||||
return aabFile
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user