Fix develop (#588)

* Fix msi build (#583)

* Add packages upload s3 endpoint url option (#584)

* Fix package build (#585)

* Refactoring package scripts (#587)

* Refactoring logs

* Refactoring packages

* Small fix
This commit is contained in:
Semyon Bezrukov
2022-12-23 20:11:12 +03:00
committed by GitHub
parent ad83a772a1
commit dd9a8b9df5
6 changed files with 386 additions and 357 deletions

View File

@ -23,18 +23,23 @@ def make_mobile():
s3_key = "mobile/android/%s/%s" % (common.channel, zip_file)
utils.log_h2("mobile build")
rc = utils.sh("zip -r " + zip_file + " ./android* ./js", verbose=True)
utils.set_summary("mobile build", rc == 0)
ret = utils.sh("zip -r " + zip_file + " ./android* ./js", verbose=True)
utils.set_summary("mobile build", ret)
utils.log_h2("mobile deploy")
if rc == 0:
rc = utils.sh(
"aws s3 cp --acl public-read --no-progress " \
+ zip_file + " s3://" + branding.s3_bucket + "/" + s3_key,
verbose=True)
if rc == 0:
utils.add_deploy_data("mobile", "Android", zip_file, s3_key, branding.s3_bucket, branding.s3_region)
utils.set_summary("mobile deploy", rc == 0)
if common.deploy:
utils.log_h2("mobile deploy")
if ret:
ret = utils.sh(
"aws s3 cp --acl public-read --no-progress " \
+ zip_file + " s3://" + branding.s3_bucket + "/" + s3_key,
verbose=True
)
if ret:
utils.add_deploy_data(
"mobile", "Android", zip_file, s3_key,
branding.s3_bucket, branding.s3_region
)
utils.set_summary("mobile deploy", ret)
utils.set_cwd(common.workspace_dir)
return