Auto merge of #28473 - jdm:codesign-build, r=jdm

Enable codesigning for non-nightly UWP builds
This commit is contained in:
bors-servo 2021-07-02 18:23:22 -04:00 committed by GitHub
commit 42d7892d88
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 16 additions and 16 deletions

View file

@ -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")