Fix build

This commit is contained in:
vvb2060 2020-06-20 18:03:46 +08:00 committed by GitHub
parent 45b5e89912
commit ddf0c379be
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -355,8 +355,8 @@ def build_apk(args, module):
tmp = f.name
# AAPT2 optimization
execv([aapt2, 'optimize', '-o', tmp, '--enable-resource-obfuscation',
'--enable-resource-path-shortening', source])
execv([aapt2, 'optimize', '-o', tmp, '--collapse-resource-names',
'--shorten-resource-paths', source])
# Recompress everything just to piss people off
with zipfile.ZipFile(source, 'w', compression=zipfile.ZIP_DEFLATED) as zout:
@ -368,7 +368,9 @@ def build_apk(args, module):
execv([zipalign, '-f', '4', source, target])
# Sign APK
execv([apksigner, 'sign', '--v1-signer-name', 'CERT',
execv([apksigner, 'sign',
'--v4-signing-enabled', 'false',
'--v1-signer-name', 'CERT',
'--ks', config['keyStore'],
'--ks-pass', f'pass:{config["keyStorePass"]}',
'--ks-key-alias', config['keyAlias'],