mirror of
https://github.com/topjohnwu/Magisk.git
synced 2025-06-12 05:07:45 +02:00
Build a single APK for all ABIs
This commit is contained in:
18
build.py
18
build.py
@ -347,19 +347,11 @@ def build_apk(args, module):
|
||||
|
||||
build_type = build_type.lower()
|
||||
|
||||
if module == 'app':
|
||||
for arch in archs + ['universal']:
|
||||
apk = f'{module}-{arch}-{build_type}.apk'
|
||||
source = op.join(module, 'build', 'outputs', 'apk', build_type, apk)
|
||||
target = op.join(config['outdir'], apk)
|
||||
mv(source, target)
|
||||
header('Output: ' + target)
|
||||
else:
|
||||
apk = f'{module}-{build_type}.apk'
|
||||
source = op.join(module, 'build', 'outputs', 'apk', build_type, apk)
|
||||
target = op.join(config['outdir'], apk)
|
||||
mv(source, target)
|
||||
header('Output: ' + target)
|
||||
apk = f'{module}-{build_type}.apk'
|
||||
source = op.join(module, 'build', 'outputs', 'apk', build_type, apk)
|
||||
target = op.join(config['outdir'], apk)
|
||||
mv(source, target)
|
||||
header('Output: ' + target)
|
||||
|
||||
|
||||
def build_app(args):
|
||||
|
Reference in New Issue
Block a user