From 5c53c9b92553f051b666d0a7a7589098be52dd7f Mon Sep 17 00:00:00 2001 From: zeromus Date: Thu, 23 Feb 2017 04:51:47 -0600 Subject: [PATCH] build scripts should bomb harshly when msbuild fails, so appveyor fails. and also i guess so the batchfile fails and users dont get half-finished zips with missing files --- Dist/BuildAndPackage.bat | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/Dist/BuildAndPackage.bat b/Dist/BuildAndPackage.bat index 3f6e802f57..1adab16191 100644 --- a/Dist/BuildAndPackage.bat +++ b/Dist/BuildAndPackage.bat @@ -19,6 +19,8 @@ IF NOT EXIST %MSBUILDDIR%msbuild.exe goto MISSINGMSBUILD call "%MSBUILDDIR%msbuild.exe" ..\BizHawk.sln /p:Configuration=Release /p:Platform="x86" /t:rebuild +@if errorlevel 1 goto MSBUILDFAILED + rmdir /s /q temp del /s %NAME% cd ..\output @@ -95,6 +97,10 @@ goto END :MISSINGMSBUILD @echo Missing msbuild.exe. can't make distro without that. goto END +:MSBUILDFAILED +@echo msbuild failed. Usual cause: user committed broken code. +goto END :MISSINGGIT @echo missing git.exe. can't make distro without that. :END +