mirror of
https://github.com/servo/servo.git
synced 2025-06-15 11:54:28 +00:00
Load codesigning secret without JSON.
This commit is contained in:
parent
bf1033abbd
commit
137236dc2a
1 changed files with 2 additions and 2 deletions
|
@ -794,12 +794,12 @@ def setup_uwp_signing(ms_app_store, publisher):
|
||||||
pfx = None
|
pfx = None
|
||||||
if is_tc:
|
if is_tc:
|
||||||
print("Packaging on TC. Using secret certificate")
|
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:
|
elif 'CODESIGN_CERT' in os.environ:
|
||||||
pfx = os.environ['CODESIGN_CERT']
|
pfx = os.environ['CODESIGN_CERT']
|
||||||
|
|
||||||
if pfx:
|
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')
|
run_powershell_cmd('Import-PfxCertificate -FilePath .\\servo.pfx -CertStoreLocation Cert:\\CurrentUser\\My')
|
||||||
os.remove("servo.pfx")
|
os.remove("servo.pfx")
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue