From ef2f8d485b936ca429b889e48ffda7be655b600b Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 27 May 2018 14:59:08 +0800 Subject: [PATCH] Add key alias option to config.prop --- build.py | 4 ++-- config.prop.sample | 2 ++ 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/build.py b/build.py index b60f50208..cd8d448aa 100755 --- a/build.py +++ b/build.py @@ -181,8 +181,8 @@ def sign_apk(source, target): if not apksigner: error('Cannot find apksigner.jar in Android SDK build tools') - proc = subprocess.run('java -jar {} sign --ks release-key.jks --ks-pass pass:{} --key-pass pass:{} {}'.format( - apksigner, config['keyStorePass'], config['keyPass'], target), shell=True) + proc = subprocess.run('java -jar {} sign --ks release-key.jks --ks-pass pass:{} --ks-key-alias {} --key-pass pass:{} {}'.format( + apksigner, config['keyStorePass'], config['keyAlias'], config['keyPass'], target), shell=True) if proc.returncode != 0: error('Release sign Magisk Manager failed!') diff --git a/config.prop.sample b/config.prop.sample index ce5c528d0..df7774643 100644 --- a/config.prop.sample +++ b/config.prop.sample @@ -9,5 +9,7 @@ outdir=out prettyName=false # These pwds are passed to apksigner for release-key.jks. Necessary when building release apks +# keyPass is the pwd for the specified keyAlias keyStorePass= +keyAlias= keyPass=