mirror of
https://github.com/servo/servo.git
synced 2025-06-25 17:44:33 +01:00
Add UWP builds to github actions.
This commit is contained in:
parent
88843b289d
commit
172274d484
5 changed files with 137 additions and 0 deletions
|
@ -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")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue