Add UWP builds to github actions.

This commit is contained in:
Josh Matthews 2021-05-29 14:41:13 -04:00
parent 88843b289d
commit 172274d484
5 changed files with 137 additions and 0 deletions

View file

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