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