Merge pull request #16193 from neovim/backport-16191-to-release-0.5

ci(win): only remove choco's cpack.exe if it exists
This commit is contained in:
James McCoy 2021-11-01 06:39:11 -04:00 committed by GitHub
commit b69ceaa2e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -171,7 +171,9 @@ if (-not $NoTests) {
}
# Ensure choco's cpack is not in PATH otherwise, it conflicts with CMake's
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
if (Test-Path -Path $env:ChocolateyInstall\bin\cpack.exe) {
Remove-Item -Path $env:ChocolateyInstall\bin\cpack.exe -Force
}
# Build artifacts
cpack -G ZIP -C RelWithDebInfo