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
fb01c43e
Commit
fb01c43e
authored
Jun 03, 2017
by
topjohnwu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add Linux compatibility
parent
b9a012c6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
build.py
build.py
+4
-4
No files found.
build.py
View file @
fb01c43e
#!/usr/bin/env python
#!/usr/bin/env python
3
import
sys
import
sys
import
os
import
os
import
subprocess
import
subprocess
...
@@ -72,7 +72,7 @@ def build_apk(args):
...
@@ -72,7 +72,7 @@ def build_apk(args):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
'..'
,
'release_signature.jks'
)):
if
not
os
.
path
.
exists
(
os
.
path
.
join
(
'..'
,
'release_signature.jks'
)):
error
(
'Please generate a java keystore and place it in
\'
release_signature.jks
\'
'
)
error
(
'Please generate a java keystore and place it in
\'
release_signature.jks
\'
'
)
proc
=
subprocess
.
run
(
'
gradlew assembleRelease'
,
shell
=
True
)
proc
=
subprocess
.
run
(
'
{} assembleRelease'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
))
,
shell
=
True
)
if
proc
.
returncode
!=
0
:
if
proc
.
returncode
!=
0
:
error
(
'Build Magisk Manager failed!'
)
error
(
'Build Magisk Manager failed!'
)
...
@@ -102,7 +102,7 @@ def build_apk(args):
...
@@ -102,7 +102,7 @@ def build_apk(args):
silentremove
(
unsigned
)
silentremove
(
unsigned
)
silentremove
(
aligned
)
silentremove
(
aligned
)
else
:
else
:
proc
=
subprocess
.
run
(
'
gradlew assembleDebug'
,
shell
=
True
)
proc
=
subprocess
.
run
(
'
{} assembleDebug'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
))
,
shell
=
True
)
if
proc
.
returncode
!=
0
:
if
proc
.
returncode
!=
0
:
error
(
'Build Magisk Manager failed!'
)
error
(
'Build Magisk Manager failed!'
)
...
@@ -223,7 +223,7 @@ def cleanup(args):
...
@@ -223,7 +223,7 @@ def cleanup(args):
if
'apk'
in
args
.
target
:
if
'apk'
in
args
.
target
:
header
(
'* Cleaning Magisk Manager'
)
header
(
'* Cleaning Magisk Manager'
)
os
.
chdir
(
'MagiskManager'
)
os
.
chdir
(
'MagiskManager'
)
subprocess
.
run
(
'
gradlew clean'
,
shell
=
True
)
subprocess
.
run
(
'
{} clean'
.
format
(
os
.
path
.
join
(
'.'
,
'gradlew'
))
,
shell
=
True
)
os
.
chdir
(
'..'
)
os
.
chdir
(
'..'
)
if
'zip'
in
args
.
target
:
if
'zip'
in
args
.
target
:
...
...
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