update build.py for fdroid - a 'copyonly' mode that prepares the mobile/assets folder but doesn't run 'ant'
This commit is contained in:
parent
30594359f0
commit
18f9ef0c2e
5
build.py
5
build.py
@ -202,8 +202,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
|
|||||||
|
|
||||||
# if we're building mobile too
|
# if we're building mobile too
|
||||||
if buildMobile:
|
if buildMobile:
|
||||||
if buildMobile not in ['debug','release']:
|
if buildMobile not in ['debug','release','copyonly']:
|
||||||
raise Exception("Error: buildMobile must be 'debug' or 'release'")
|
raise Exception("Error: buildMobile must be 'debug' or 'release' or 'copyonly'")
|
||||||
|
|
||||||
# compile the user location script
|
# compile the user location script
|
||||||
fn = "user-location.user.js"
|
fn = "user-location.user.js"
|
||||||
@ -232,6 +232,7 @@ if buildMobile:
|
|||||||
copytree(os.path.join(outDir,"plugins"), "mobile/assets/plugins")
|
copytree(os.path.join(outDir,"plugins"), "mobile/assets/plugins")
|
||||||
|
|
||||||
|
|
||||||
|
if buildMobile != 'copyonly':
|
||||||
# now launch 'ant' to build the mobile project
|
# now launch 'ant' to build the mobile project
|
||||||
retcode = os.system("ant -buildfile mobile/build.xml %s" % buildMobile)
|
retcode = os.system("ant -buildfile mobile/build.xml %s" % buildMobile)
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user