chore: update windows signing script (#12524)
This commit is contained in:
parent
65b23f112e
commit
bfb26a8af6
|
|
@ -1,15 +1,12 @@
|
|||
$tempCertFile = New-TemporaryFile
|
||||
|
||||
# Retrieve environment variables for cert/password.
|
||||
$certText = $env:windowsCert
|
||||
$CertPass = $env:windowsCertPassword
|
||||
|
||||
# Create a Cert object by converting the cert string to bytes.
|
||||
$finalFileName = $tempCertFile.FullName
|
||||
$certBytes = [Convert]::FromBase64String($certText)
|
||||
[System.IO.File]::WriteAllBytes($finalFileName, $certBytes)
|
||||
$CertPath = $finalFileName
|
||||
$Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertPath, $CertPass)
|
||||
$Cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2($CertPath)
|
||||
|
||||
# Go through the artifacts directory and sign the 'windows' artifacts.
|
||||
$artifactDirectory = "./build/dist"
|
||||
|
|
|
|||
Loading…
Reference in New Issue