From ae05c71399012b4d98abe66831823511279ad273 Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 15 Aug 2016 21:12:51 +0200 Subject: [PATCH] Change the way the file is written. --- appveyor12.yml | 1 - prebuild.ps1 | 3 +++ 2 files changed, 3 insertions(+), 1 deletion(-) 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