Fix Android install script issue:
1. FileNotFoundError:
``` bash
Traceback (most recent call last):
File "install-all.py", line 11, in <module>
if subprocess.call("python build-all.py -deploy %s" % BUILD_ARGUMENTS) != 0:
File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 267, in call
with Popen(*popenargs, **kwargs) as p:
File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 707, in __init__
restore_signals, start_new_session)
File "/Users/piasy/anaconda3/lib/python3.6/subprocess.py", line 1326, in _execute_child
raise child_exception_type(errno_num, err_msg)
FileNotFoundError: [Errno 2] No such file or directory: 'python build-all.py -deploy '
```
2. KeyError:
``` bash
Traceback (most recent call last):
File "build.py", line 46, in <module>
if "additional" in EXAMPLE_JSON["assets"]:
KeyError: 'assets'
```
This commit is contained in:
parent
3d3cf9f31c
commit
7e2787413b
3 changed files with 4 additions and 5 deletions
|
|
@ -29,7 +29,7 @@ if not os.path.isfile(os.path.join(PROJECT_FOLDER, "build.xml")):
|
|||
ANDROID_CMD = "android"
|
||||
if os.name == 'nt':
|
||||
ANDROID_CMD += ".bat"
|
||||
if subprocess.call("%s update project -p ./%s -t %s" % (ANDROID_CMD, PROJECT_FOLDER, SDK_VERSION)) != 0:
|
||||
if subprocess.call(("%s update project -p ./%s -t %s" % (ANDROID_CMD, PROJECT_FOLDER, SDK_VERSION)).split(' ')) != 0:
|
||||
print("Error: Project update failed!")
|
||||
sys.exit(-1)
|
||||
|
||||
|
|
@ -43,7 +43,7 @@ SHADER_DIR = EXAMPLE_JSON["directories"]["shaders"]
|
|||
# Additional
|
||||
ADDITIONAL_DIRS = []
|
||||
ADDITIONAL_FILES = []
|
||||
if "additional" in EXAMPLE_JSON["assets"]:
|
||||
if "assets" in EXAMPLE_JSON and "additional" in EXAMPLE_JSON["assets"]:
|
||||
ADDITIONAL = EXAMPLE_JSON["assets"]["additional"]
|
||||
if "directories" in ADDITIONAL:
|
||||
ADDITIONAL_DIRS = ADDITIONAL["directories"]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue