From f1e152eb3857b0b78252b79d898c82cca7a4170c Mon Sep 17 00:00:00 2001 From: Robin Date: Mon, 15 Aug 2016 17:21:14 +0200 Subject: [PATCH] PowerShell call for CertUtil --- build.ps1 | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/build.ps1 b/build.ps1 index f381cf74e..769bb66bc 100644 --- a/build.ps1 +++ b/build.ps1 @@ -55,7 +55,9 @@ Function MD5($filename) { Function PrepareCertificate() { $decodedContentBytes = [System.Convert]::FromBase64String($env:Certificate) $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