diff deploy/win64/build-and-package.bat @ 2451:22af3b429679

Exit on error
author Chris Cannam
date Wed, 15 Jan 2020 11:03:31 +0000
parents 119588c42772
children be6a245c43f3
line wrap: on
line diff
--- a/deploy/win64/build-and-package.bat	Tue Jan 14 15:59:17 2020 +0000
+++ b/deploy/win64/build-and-package.bat	Wed Jan 15 11:03:31 2020 +0000
@@ -13,7 +13,10 @@
 )
 
 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win32\generate-wxs.ps1'"
+if errorlevel 1 exit /b %errorlevel%
+
 powershell -NoProfile -ExecutionPolicy Bypass -Command "& 'deploy\win64\generate-wxs.ps1'"
+if errorlevel 1 exit /b %errorlevel%
 
 set ORIGINALPATH=%PATH%
 set PATH=C:\Program Files (x86)\Microsoft SDKs\Windows\v7.1A\Bin;%PATH%