diff options
author | Josh Matthews <josh@joshmatthews.net> | 2021-05-29 14:41:13 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-05-29 16:05:02 -0400 |
commit | 172274d484c363cdf4630b4001ec2c0087f77765 (patch) | |
tree | 02b3b36a55c503631252a857f9925ec7ffbd6fc0 /python/servo/package_commands.py | |
parent | 88843b289dacb5ba5a08466c34de3ece1de829c5 (diff) | |
download | servo-172274d484c363cdf4630b4001ec2c0087f77765.tar.gz servo-172274d484c363cdf4630b4001ec2c0087f77765.zip |
Add UWP builds to github actions.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 280fe782481..886b52b20f6 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -791,9 +791,14 @@ def setup_uwp_signing(ms_app_store, publisher): print("ERROR: PowerShell command failed: ", cmd) exit(1) + pfx = None if is_tc: print("Packaging on TC. Using secret certificate") pfx = get_taskcluster_secret("windows-codesign-cert/latest")["pfx"] + elif 'CODESIGN_CERT' in os.environ: + pfx = os.environ['CODESIGN_CERT'] + + if pfx: open("servo.pfx", "wb").write(base64.b64decode(pfx["base64"])) run_powershell_cmd('Import-PfxCertificate -FilePath .\\servo.pfx -CertStoreLocation Cert:\\CurrentUser\\My') os.remove("servo.pfx") |