mirror of
https://github.com/topjohnwu/Magisk.git
synced 2024-12-22 07:57:39 +00:00
Update build script
This commit is contained in:
parent
5072a67807
commit
9a7a26407a
9
build.py
9
build.py
@ -250,7 +250,7 @@ def build_apk(args, module):
|
||||
|
||||
|
||||
def build_app(args):
|
||||
header('Building Magisk Manager')
|
||||
header('* Building Magisk Manager')
|
||||
source = os.path.join('scripts', 'util_functions.sh')
|
||||
target = os.path.join('app', 'src', 'main',
|
||||
'res', 'raw', 'util_functions.sh')
|
||||
@ -259,7 +259,7 @@ def build_app(args):
|
||||
|
||||
|
||||
def build_stub(args):
|
||||
header('Building Magisk Manager stub')
|
||||
header('* Building Magisk Manager stub')
|
||||
stub = build_apk(args, 'stub')
|
||||
# Dump the stub APK to header
|
||||
mkdir(os.path.join('native', 'out'))
|
||||
@ -269,7 +269,7 @@ def build_stub(args):
|
||||
|
||||
|
||||
def build_snet(args):
|
||||
header('Building snet extension')
|
||||
header('* Building snet extension')
|
||||
proc = execv([gradlew, 'snet:assembleRelease'])
|
||||
if proc.returncode != 0:
|
||||
error('Build snet extention failed!')
|
||||
@ -409,8 +409,7 @@ def cleanup(args):
|
||||
|
||||
if 'java' in args.target:
|
||||
header('* Cleaning java')
|
||||
execv([gradlew, 'app:clean', 'app-core:clean',
|
||||
'snet:clean', 'signing:clean'])
|
||||
execv([gradlew, 'clean'])
|
||||
|
||||
|
||||
def build_all(args):
|
||||
|
Loading…
x
Reference in New Issue
Block a user