build: 移除构建失败时的冗余错误提示

This commit is contained in:
Luke 2025-08-25 13:47:08 +08:00
parent 2a9d2b7f5f
commit 9afc1caac7

View File

@ -129,8 +129,6 @@ Write-Host ("windows-release: " + ($(if ($winProc.ExitCode -eq 0) { 'Success' }
Write-Host ("linux-release: " + ($(if ($linProc.ExitCode -eq 0) { 'Success' } else { 'Failed' }))) Write-Host ("linux-release: " + ($(if ($linProc.ExitCode -eq 0) { 'Success' } else { 'Failed' })))
if (($winProc.ExitCode -ne 0) -or ($linProc.ExitCode -ne 0)) { if (($winProc.ExitCode -ne 0) -or ($linProc.ExitCode -ne 0)) {
Write-Host ""
Write-Host "One or more tasks failed." -ForegroundColor Red
Remove-Item $winLogOut, $winLogErr, $linLogOut, $linLogErr -Force Remove-Item $winLogOut, $winLogErr, $linLogOut, $linLogErr -Force
exit 1 exit 1
} }