mirror of
https://github.com/greenshot/greenshot
synced 2025-07-16 10:03:44 -07:00
PowerShell call for CertUtil
This commit is contained in:
parent
863fb6c007
commit
f1e152eb38
1 changed files with 3 additions and 1 deletions
|
@ -55,7 +55,9 @@ Function MD5($filename) {
|
||||||
Function PrepareCertificate() {
|
Function PrepareCertificate() {
|
||||||
$decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate)
|
$decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate)
|
||||||
$decodedContentBytes | set-content "greenshot.pfx" -encoding byte
|
$decodedContentBytes | set-content "greenshot.pfx" -encoding byte
|
||||||
certutil -p "$env:CertificatePassword" -importpfx -f "greenshot.pfx" NoExport
|
|
||||||
|
$certutilArguments = @('-f', '-p', $env:CertificatePassword, '-importpfx', "greenshot.pfx")
|
||||||
|
Start-Process -wait -PassThru certutil -ArgumentList $certutilArguments -NoNewWindow
|
||||||
}
|
}
|
||||||
|
|
||||||
# Sign the file with Signtool before they are packed in the installer / .zip etc
|
# Sign the file with Signtool before they are packed in the installer / .zip etc
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue