Skip to content

Commit 2285f5e

Browse files
committedMar 2, 2023
Fix build script
1 parent da36e5b commit 2285f5e

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed
 

‎app/.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
/local.properties
44
.idea/
55
/build
6-
app/release
76
*.hprof
87
.externalNativeBuild/
98
*.apk

‎build.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -429,7 +429,7 @@ def build_app(args):
429429
# build process. Copy the stub APK into output directory.
430430
build_type = 'release' if args.release else 'debug'
431431
apk = f'stub-{build_type}.apk'
432-
source = op.join('app', 'src', 'main', 'assets', 'stub.apk')
432+
source = op.join('app', 'src', build_type, 'assets', 'stub.apk')
433433
target = op.join(config['outdir'], apk)
434434
cp(source, target)
435435

@@ -457,7 +457,8 @@ def cleanup(args):
457457
if 'java' in args.target:
458458
header('* Cleaning java')
459459
execv([gradlew, 'app:clean', 'app:shared:clean', 'stub:clean'])
460-
rm_rf(op.join('app', 'src', 'main', 'assets'))
460+
rm_rf(op.join('app', 'src', 'debug'))
461+
rm_rf(op.join('app', 'src', 'release'))
461462

462463

463464
def setup_ndk(args):

0 commit comments

Comments
 (0)
Please sign in to comment.