mirror of
https://github.com/topjohnwu/Magisk
synced 2025-09-02 10:05:11 +00:00
Fix build script
This commit is contained in:
5
build.py
5
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):
|
||||
|
Reference in New Issue
Block a user