comparison deploy/win64/build-and-package.bat @ 1839:fdcd956b5d32

Further tidying, and error handling, for Windows build scripting
author Chris Cannam
date Tue, 05 Jun 2018 13:32:28 +0100
parents deploy/win64/complete-build.bat@e63cc95876cb
children 9f26f92bf89f
comparison
equal deleted inserted replaced
1832:da678ff18fb0 1839:fdcd956b5d32
1 rem Run this from within the top-level SV dir: deploy\win64\build-and-package.bat
2
3 set STARTPWD=%CD%
4
5 if not exist "C:\Program Files (x86)\SMLNJ\bin" (
6 @ echo Could not find SML/NJ, required for Repoint
7 @ exit /b
8 )
9
10 if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" (
11 @ echo Could not find WiX Toolset
12 @ exit /b
13 )
14
15 @echo Rebuilding 32-bit
16
17 cd %STARTPWD%
18 rem del /q /s build_win32
19 call .\deploy\win64\build-32.bat
20 if %errorlevel% neq 0 exit /b %errorlevel%
21
22 @echo Rebuilding 64-bit
23
24 cd %STARTPWD%
25 rem del /q /s build_win64
26 call .\deploy\win64\build-64.bat
27 if %errorlevel% neq 0 exit /b %errorlevel%
28
29 set PATH=%PATH%;"C:\Program Files (x86)\WiX Toolset v3.11\bin"
30
31 @echo Packaging 32-bit
32
33 cd %STARTPWD%\build_win32
34 del sonic-visualiser.msi
35 candle -v ..\deploy\win32\sonic-visualiser.wxs
36 light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj
37 if %errorlevel% neq 0 exit /b %errorlevel%
38 del sonic-visualiser.wixobj
39 del sonic-visualiser.wixpdb
40
41 @echo Packaging 64-bit
42
43 cd %STARTPWD%\build_win64
44 del sonic-visualiser.msi
45 candle -v ..\deploy\win64\sonic-visualiser.wxs
46 light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj
47 if %errorlevel% neq 0 exit /b %errorlevel%
48 del sonic-visualiser.wixobj
49 del sonic-visualiser.wixpdb
50
51 @echo Done
52