Change the way the file is written.

This commit is contained in:
Robin 2016-08-15 21:12:51 +02:00
commit ae05c71399
2 changed files with 3 additions and 1 deletions

View file

@ -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:

View file

@ -44,3 +44,6 @@ Function FillCredentials {
}
FillCredentials
# Write the certificate to a file
[System.Convert]::FromBase64String($env:CertificatePassword) | set-content "greenshot.pfx" -encoding byte