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

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