diff options
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") |