mirror of
https://github.com/greenshot/greenshot
synced 2025-08-21 14:03:23 -07:00
Straightening stuff
This commit is contained in:
parent
82ea01814b
commit
4587e7763e
2 changed files with 4 additions and 8 deletions
|
@ -44,8 +44,6 @@ environment:
|
||||||
before_build:
|
before_build:
|
||||||
- nuget restore
|
- nuget restore
|
||||||
- ps: .\prebuild.ps1
|
- ps: .\prebuild.ps1
|
||||||
- ps: $psw = ConvertTo-SecureString $env:CertificatePassword -AsPlainText -Force
|
|
||||||
- ps: Import-PfxCertificate -FilePath Greenshot.pfx -CertStoreLocation cert:\CurrentUser\My -Password $psw
|
|
||||||
build:
|
build:
|
||||||
project: greenshot.sln
|
project: greenshot.sln
|
||||||
verbosity: normal
|
verbosity: normal
|
||||||
|
|
10
prebuild.ps1
10
prebuild.ps1
|
@ -47,9 +47,7 @@ FillCredentials
|
||||||
|
|
||||||
# Write the certificate to a file
|
# Write the certificate to a file
|
||||||
[System.Convert]::FromBase64String($env:Certificate) | set-content "greenshot.pfx" -encoding byte
|
[System.Convert]::FromBase64String($env:Certificate) | set-content "greenshot.pfx" -encoding byte
|
||||||
# Import it
|
# Decode password to secure string
|
||||||
Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $env:CertificatePassword
|
$password = ConvertTo-SecureString $env:CertificatePassword -AsPlainText -Force
|
||||||
|
# Import pfx
|
||||||
# Alternative
|
Import-PfxCertificate -FilePath .\Greenshot.pfx -CertStoreLocation Cert:\CurrentUser\My -Password $password
|
||||||
# $certutilArguments = @('-f','-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx")
|
|
||||||
# Start-Process -wait certutil -ArgumentList $certutilArguments -NoNewWindow
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue