mirror of
https://github.com/cmderdev/cmder.git
synced 2025-01-10 16:29:08 +08:00
Fix build script not exiting on msbuild failure.
This commit is contained in:
parent
5b7c008202
commit
e7243efce2
@ -105,6 +105,9 @@ Pop-Location
|
|||||||
if($Compile) {
|
if($Compile) {
|
||||||
Push-Location -Path $launcher
|
Push-Location -Path $launcher
|
||||||
msbuild CmderLauncher.vcxproj /p:configuration=Release
|
msbuild CmderLauncher.vcxproj /p:configuration=Release
|
||||||
|
if ($LastExitCode -ne 0) {
|
||||||
|
throw "msbuild failed to build the executable."
|
||||||
|
}
|
||||||
Pop-Location
|
Pop-Location
|
||||||
} else {
|
} else {
|
||||||
Write-Warning "You are not building a launcher, Use -Compile"
|
Write-Warning "You are not building a launcher, Use -Compile"
|
||||||
|
Loading…
Reference in New Issue
Block a user