Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(cli): Specify keystore alias and alias password build options for apksigner #7073

Merged
merged 7 commits into from
Jan 3, 2024
8 changes: 8 additions & 0 deletions cli/src/android/build.ts
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,14 @@ async function signWithApkSigner(
`${join(releasePath, signedReleaseName)}`,
];

if (buildOptions.keystorealias) {
signingArgs.push('--ks-key-alias', buildOptions.keystorealias);
}

if (buildOptions.keystorealiaspass) {
signingArgs.push('--key-pass', buildOptions.keystorealiaspass);
}

await runTask('Signing Release', async () => {
await runCommand('apksigner', signingArgs, {
cwd: config.android.platformDirAbs,
Expand Down