From 2285f5e8889718d1648b150032ec348d5ac36206 Mon Sep 17 00:00:00 2001 From: topjohnwu Date: Thu, 2 Mar 2023 03:02:10 -0800 Subject: [PATCH] Fix build script --- app/.gitignore | 1 - build.py | 5 +++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/app/.gitignore b/app/.gitignore index c4ff2b1c6..03090c7b6 100644 --- a/app/.gitignore +++ b/app/.gitignore @@ -3,7 +3,6 @@ /local.properties .idea/ /build -app/release *.hprof .externalNativeBuild/ *.apk diff --git a/build.py b/build.py index d88b11834..019e52529 100755 --- a/build.py +++ b/build.py @@ -429,7 +429,7 @@ def build_app(args): # build process. Copy the stub APK into output directory. build_type = 'release' if args.release else 'debug' apk = f'stub-{build_type}.apk' - source = op.join('app', 'src', 'main', 'assets', 'stub.apk') + source = op.join('app', 'src', build_type, 'assets', 'stub.apk') target = op.join(config['outdir'], apk) cp(source, target) @@ -457,7 +457,8 @@ def cleanup(args): if 'java' in args.target: header('* Cleaning java') execv([gradlew, 'app:clean', 'app:shared:clean', 'stub:clean']) - rm_rf(op.join('app', 'src', 'main', 'assets')) + rm_rf(op.join('app', 'src', 'debug')) + rm_rf(op.join('app', 'src', 'release')) def setup_ndk(args):