Chris@1839: rem  Run this from within the top-level SV dir: deploy\win64\build-and-package.bat
Chris@1827: 
Chris@1827: set STARTPWD=%CD%
Chris@1827: 
Chris@1827: if not exist "C:\Program Files (x86)\SMLNJ\bin" (
Chris@1827: @   echo Could not find SML/NJ, required for Repoint
Chris@1841: @   exit /b 2
Chris@1827: )
Chris@1827: 
Chris@1827: if not exist "C:\Program Files (x86)\WiX Toolset v3.11\bin" (
Chris@1827: @   echo Could not find WiX Toolset
Chris@1841: @   exit /b 2
Chris@1827: )
Chris@1827: 
Chris@1839: @echo Rebuilding 32-bit
Chris@1827: 
Chris@1827: cd %STARTPWD%
Chris@1841: del /q /s build_win32
Chris@1839: call .\deploy\win64\build-32.bat
Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827: 
Chris@1839: @echo Rebuilding 64-bit
Chris@1827: 
Chris@1839: cd %STARTPWD%
Chris@1841: del /q /s build_win64
Chris@1839: call .\deploy\win64\build-64.bat
Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827: 
Chris@1839: set PATH=%PATH%;"C:\Program Files (x86)\WiX Toolset v3.11\bin"
Chris@1827: 
Chris@1839: @echo Packaging 32-bit
Chris@1827: 
Chris@1839: cd %STARTPWD%\build_win32
Chris@1827: del sonic-visualiser.msi
Chris@1827: candle -v ..\deploy\win32\sonic-visualiser.wxs
Chris@1827: light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj
Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827: del sonic-visualiser.wixobj
Chris@1827: del sonic-visualiser.wixpdb
Chris@1827: 
Chris@1839: @echo Packaging 64-bit
Chris@1827: 
Chris@1839: cd %STARTPWD%\build_win64
Chris@1827: del sonic-visualiser.msi
Chris@1827: candle -v ..\deploy\win64\sonic-visualiser.wxs
Chris@1827: light -b . -ext WixUIExtension -ext WixUtilExtension -v sonic-visualiser.wixobj
Chris@1839: if %errorlevel% neq 0 exit /b %errorlevel%
Chris@1827: del sonic-visualiser.wixobj
Chris@1827: del sonic-visualiser.wixpdb
Chris@1839: 
Chris@1839: @echo Done
Chris@1839: