Pass all arguments to example android build file [skip ci]
This commit is contained in:
parent
bdf49d58f6
commit
e9da7a370f
1 changed files with 1 additions and 6 deletions
|
|
@ -29,12 +29,7 @@ if not os.path.isfile(os.path.join(PROJECT_FOLDER, "build.py")):
|
||||||
print("Error: No build script present!")
|
print("Error: No build script present!")
|
||||||
sys.exit(-1)
|
sys.exit(-1)
|
||||||
|
|
||||||
BUILD_ARGUMENTS = ""
|
BUILD_ARGUMENTS = " ".join(sys.argv)
|
||||||
for arg in sys.argv[1:]:
|
|
||||||
if arg == "-deploy":
|
|
||||||
BUILD_ARGUMENTS += "-deploy"
|
|
||||||
if arg == "-validation":
|
|
||||||
BUILD_ARGUMENTS += "-validation"
|
|
||||||
|
|
||||||
os.chdir(PROJECT_FOLDER)
|
os.chdir(PROJECT_FOLDER)
|
||||||
if subprocess.call("python build.py %s" % BUILD_ARGUMENTS) != 0:
|
if subprocess.call("python build.py %s" % BUILD_ARGUMENTS) != 0:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue