Merge pull request #4 from thornbill/fix-androidtv

Update client build to check for build.sh
This commit is contained in:
dkanada 2020-01-31 12:01:10 +09:00 committed by GitHub
commit da9bba9202
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -63,7 +63,10 @@ def build_client(project, package, web_target):
os.chdir(project_dir)
# We wrap `build` so we expect it to be sane and like what we send it
subprocess.call('./build -r {} -b {}'.format(package, web_target), shell=True)
build_script = './build'
if not os.path.isfile('./build') and os.path.isfile('./build.sh'):
build_script = './build.sh'
subprocess.call('{} -r {} -b {}'.format(build_script, package, web_target), shell=True)
# Move back to the previous directory
os.chdir(revdir)