From 3934821436fd54460b003260187b84fec608cf28 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Sun, 8 Jul 2018 00:02:18 +0800 Subject: [PATCH] Don't clean output --- build.py | 15 +++------------ 1 file changed, 3 insertions(+), 12 deletions(-) diff --git a/build.py b/build.py index f2e330224..08bfbbddf 100755 --- a/build.py +++ b/build.py @@ -404,25 +404,16 @@ def sign_adjust_zip(unsigned, output): def cleanup(args): if len(args.target) == 0: - args.target = ['binary', 'java', 'zip'] + args.target = ['native', 'java'] - if 'binary' in args.target: - header('* Cleaning binaries') + if 'native' in args.target: + header('* Cleaning native') subprocess.run(ndk_build + ' -C native B_MAGISK=1 B_INIT=1 B_BOOT=1 B_BXZ=1 B_BB=1 clean', shell=True) shutil.rmtree(os.path.join('native', 'out'), ignore_errors=True) if 'java' in args.target: header('* Cleaning java') subprocess.run('{} app:clean snet:clean utils:clean'.format(os.path.join('.', 'gradlew')), shell=True) - for f in os.listdir(config['outdir']): - if '.apk' in f: - rm(os.path.join(config['outdir'], f)) - - if 'zip' in args.target: - header('* Cleaning zip files') - for f in os.listdir(config['outdir']): - if '.zip' in f: - rm(os.path.join(config['outdir'], f)) def parse_config(): c = {}