diff --git a/Tools/sign_binaries.ps1 b/Tools/sign_binaries.ps1 index 109d936c2..5badac367 100644 --- a/Tools/sign_binaries.ps1 +++ b/Tools/sign_binaries.ps1 @@ -31,6 +31,10 @@ if ($ConfigurationName -notmatch "Release") { return } +if(-Not ([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) ) { + $CertificatePath = Join-Path -Path $TargetDir -ChildPath $CertificatePath +} + if ($CertificatePath -eq "" -or !(Test-Path -Path $CertificatePath -PathType Leaf)) { Write-Output "Certificate is not present - we won't sign files." return diff --git a/Tools/verify_binary_signatures.ps1 b/Tools/verify_binary_signatures.ps1 index a54555c26..1552352fb 100644 --- a/Tools/verify_binary_signatures.ps1 +++ b/Tools/verify_binary_signatures.ps1 @@ -18,6 +18,10 @@ Write-Output "===== Beginning $($PSCmdlet.MyInvocation.MyCommand) =====" # validate release versions and if the certificate is available if ($ConfigurationName -match "Release") { + if(-Not ([string]::IsNullOrEmpty($Env:APPVEYOR_BUILD_FOLDER)) ) { + $CertificatePath = Join-Path -Path $TargetDir -ChildPath $CertificatePath + } + if ($CertificatePath -eq "" -or !(Test-Path -Path $CertificatePath -PathType Leaf)) { Write-Output "Certificate is not present - files likely not signed - we won't verify file signatures."