diff options
author | Josh Matthews <josh@joshmatthews.net> | 2021-06-07 08:53:16 -0400 |
---|---|---|
committer | Josh Matthews <josh@joshmatthews.net> | 2021-07-02 18:22:48 -0400 |
commit | 137236dc2a3f4909d1c93b17280f331afb39d65f (patch) | |
tree | fad8f089890f421d91efdd4126bc5c32e38b3156 /python/servo/package_commands.py | |
parent | bf1033abbdb58d16a19e35ecabbed28be6f2108e (diff) | |
download | servo-137236dc2a3f4909d1c93b17280f331afb39d65f.tar.gz servo-137236dc2a3f4909d1c93b17280f331afb39d65f.zip |
Load codesigning secret without JSON.
Diffstat (limited to 'python/servo/package_commands.py')
-rw-r--r-- | python/servo/package_commands.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/python/servo/package_commands.py b/python/servo/package_commands.py index 886b52b20f6..9564e793b8c 100644 --- a/python/servo/package_commands.py +++ b/python/servo/package_commands.py @@ -794,12 +794,12 @@ def setup_uwp_signing(ms_app_store, publisher): pfx = None if is_tc: print("Packaging on TC. Using secret certificate") - pfx = get_taskcluster_secret("windows-codesign-cert/latest")["pfx"] + pfx = get_taskcluster_secret("windows-codesign-cert/latest")["pfx"]["base64"] elif 'CODESIGN_CERT' in os.environ: pfx = os.environ['CODESIGN_CERT'] if pfx: - open("servo.pfx", "wb").write(base64.b64decode(pfx["base64"])) + open("servo.pfx", "wb").write(base64.b64decode(pfx)) run_powershell_cmd('Import-PfxCertificate -FilePath .\\servo.pfx -CertStoreLocation Cert:\\CurrentUser\\My') os.remove("servo.pfx") |