update build.py for fdroid - a 'copyonly' mode that prepares the mobile/assets folder but doesn't run 'ant'

This commit is contained in:
Jon Atkins 2013-05-01 17:07:31 +01:00
parent 30594359f0
commit 18f9ef0c2e

View File

@ -202,8 +202,8 @@ def copytree(src, dst, symlinks=False, ignore=None):
# if we're building mobile too
if buildMobile:
if buildMobile not in ['debug','release']:
raise Exception("Error: buildMobile must be 'debug' or 'release'")
if buildMobile not in ['debug','release','copyonly']:
raise Exception("Error: buildMobile must be 'debug' or 'release' or 'copyonly'")
# compile the user location script
fn = "user-location.user.js"
@ -232,6 +232,7 @@ if buildMobile:
copytree(os.path.join(outDir,"plugins"), "mobile/assets/plugins")
if buildMobile != 'copyonly':
# now launch 'ant' to build the mobile project
retcode = os.system("ant -buildfile mobile/build.xml %s" % buildMobile)