Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
M
Magisk
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Administrator
Magisk
Commits
9a7a2640
Commit
9a7a2640
authored
Mar 12, 2019
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update build script
parent
5072a678
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
5 deletions
+4
-5
build.py
build.py
+4
-5
No files found.
build.py
View file @
9a7a2640
...
@@ -250,7 +250,7 @@ def build_apk(args, module):
...
@@ -250,7 +250,7 @@ def build_apk(args, module):
def
build_app
(
args
):
def
build_app
(
args
):
header
(
'Building Magisk Manager'
)
header
(
'
*
Building Magisk Manager'
)
source
=
os
.
path
.
join
(
'scripts'
,
'util_functions.sh'
)
source
=
os
.
path
.
join
(
'scripts'
,
'util_functions.sh'
)
target
=
os
.
path
.
join
(
'app'
,
'src'
,
'main'
,
target
=
os
.
path
.
join
(
'app'
,
'src'
,
'main'
,
'res'
,
'raw'
,
'util_functions.sh'
)
'res'
,
'raw'
,
'util_functions.sh'
)
...
@@ -259,7 +259,7 @@ def build_app(args):
...
@@ -259,7 +259,7 @@ def build_app(args):
def
build_stub
(
args
):
def
build_stub
(
args
):
header
(
'Building Magisk Manager stub'
)
header
(
'
*
Building Magisk Manager stub'
)
stub
=
build_apk
(
args
,
'stub'
)
stub
=
build_apk
(
args
,
'stub'
)
# Dump the stub APK to header
# Dump the stub APK to header
mkdir
(
os
.
path
.
join
(
'native'
,
'out'
))
mkdir
(
os
.
path
.
join
(
'native'
,
'out'
))
...
@@ -269,7 +269,7 @@ def build_stub(args):
...
@@ -269,7 +269,7 @@ def build_stub(args):
def
build_snet
(
args
):
def
build_snet
(
args
):
header
(
'Building snet extension'
)
header
(
'
*
Building snet extension'
)
proc
=
execv
([
gradlew
,
'snet:assembleRelease'
])
proc
=
execv
([
gradlew
,
'snet:assembleRelease'
])
if
proc
.
returncode
!=
0
:
if
proc
.
returncode
!=
0
:
error
(
'Build snet extention failed!'
)
error
(
'Build snet extention failed!'
)
...
@@ -409,8 +409,7 @@ def cleanup(args):
...
@@ -409,8 +409,7 @@ def cleanup(args):
if
'java'
in
args
.
target
:
if
'java'
in
args
.
target
:
header
(
'* Cleaning java'
)
header
(
'* Cleaning java'
)
execv
([
gradlew
,
'app:clean'
,
'app-core:clean'
,
execv
([
gradlew
,
'clean'
])
'snet:clean'
,
'signing:clean'
])
def
build_all
(
args
):
def
build_all
(
args
):
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment