diff --git a/appveyor12.yml b/appveyor12.yml index cf9feffae..13fa44334 100644 --- a/appveyor12.yml +++ b/appveyor12.yml @@ -44,7 +44,6 @@ environment: before_build: - nuget restore - ps: .\prebuild.ps1 -- ps: [System.Convert]::FromBase64String($env:CertificatePassword) | set-content "greenshot.pfx" -encoding byte - ps: $psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText - ps: Import-PfxCertificate -FilePath Greenshot.pfx -CertStoreLocation cert:\CurrentUser\My -Password $psw build: diff --git a/prebuild.ps1 b/prebuild.ps1 index 60d3be684..0390a669c 100644 --- a/prebuild.ps1 +++ b/prebuild.ps1 @@ -44,3 +44,6 @@ Function FillCredentials { } FillCredentials + +# Write the certificate to a file +[System.Convert]::FromBase64String($env:CertificatePassword) | set-content "greenshot.pfx" -encoding byte