changeset 2451:22af3b429679

Exit on error
author Chris Cannam
date Wed, 15 Jan 2020 11:03:31 +0000
parents c8fe74afb77d
children 9bf792d9d94d
files deploy/win64/build-and-package.bat
diffstat 1 files changed, 3 insertions(+), 0 deletions(-) [+]
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%