mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 16:07:39 +00:00
Add key alias option to config.prop
This commit is contained in:
parent
9fb9212b0a
commit
ef2f8d485b
4
build.py
4
build.py
@ -181,8 +181,8 @@ def sign_apk(source, target):
|
|||||||
if not apksigner:
|
if not apksigner:
|
||||||
error('Cannot find apksigner.jar in Android SDK build tools')
|
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(
|
proc = subprocess.run('java -jar {} sign --ks release-key.jks --ks-pass pass:{} --ks-key-alias {} --key-pass pass:{} {}'.format(
|
||||||
apksigner, config['keyStorePass'], config['keyPass'], target), shell=True)
|
apksigner, config['keyStorePass'], config['keyAlias'], config['keyPass'], target), shell=True)
|
||||||
if proc.returncode != 0:
|
if proc.returncode != 0:
|
||||||
error('Release sign Magisk Manager failed!')
|
error('Release sign Magisk Manager failed!')
|
||||||
|
|
||||||
|
@ -9,5 +9,7 @@ outdir=out
|
|||||||
prettyName=false
|
prettyName=false
|
||||||
|
|
||||||
# These pwds are passed to apksigner for release-key.jks. Necessary when building release apks
|
# These pwds are passed to apksigner for release-key.jks. Necessary when building release apks
|
||||||
|
# keyPass is the pwd for the specified keyAlias
|
||||||
keyStorePass=
|
keyStorePass=
|
||||||
|
keyAlias=
|
||||||
keyPass=
|
keyPass=
|
||||||
|
Loading…
x
Reference in New Issue
Block a user