fulll cert path on AV builds

This commit is contained in:
Sean Kaim
2019-03-04 13:44:18 -05:00
parent 5b1486cb6f
commit db0b48f1ad
2 changed files with 8 additions and 0 deletions

View File

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

View File

@@ -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."