annotate deploy/clean-build-and-package.bat @ 126:31435b4d9833

Build a 32-bit installer as well as 64-bit (on Windows). Requires splitting the resource file in two, otherwise the 32-bit compiler runs out of heap space!
author Chris Cannam
date Fri, 12 Jun 2020 15:13:59 +0100
parents 732a4bf233df
children 9209bf64c0c5
rev   line source
Chris@63 1 @rem Run this from within the top-level dir: deploy\clean-build-and-package
Chris@63 2 @echo on
Chris@63 3
Chris@63 4 @set /p VERSION=<version.h
Chris@63 5 @set VERSION=%VERSION:#define PACK_VERSION "=%
Chris@63 6 set VERSION=%VERSION:"=%
Chris@63 7
Chris@63 8 @echo(
Chris@63 9 @set YN=y
Chris@63 10 @set /p YN="Proceed to clean, rebuild, package, and sign version %VERSION% [Yn] ?"
Chris@63 11
Chris@63 12 @if "%YN%" == "Y" set YN=y
Chris@63 13 @if "%YN%" neq "y" exit /b 3
Chris@63 14
Chris@63 15 @echo Proceeding
Chris@126 16
Chris@126 17 @echo Building 32-bit
Chris@126 18 del /q /s out
Chris@126 19 del /q /s build_win32
Chris@126 20 call .\deploy\win64\build-32.bat sign
Chris@126 21 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@126 22
Chris@126 23 @echo Building 64-bit
Chris@113 24 del /q /s out
Chris@80 25 del /q /s build_win64
Chris@80 26 call .\deploy\win64\build-64.bat sign
Chris@63 27 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@63 28
Chris@63 29 mkdir packages
Chris@126 30 copy "build_win32\release\Vamp Plugin Pack Installer.exe" "packages\Vamp Plugin Pack Installer %VERSION% 32-bit.exe"
Chris@80 31 copy "build_win64\release\Vamp Plugin Pack Installer.exe" "packages\Vamp Plugin Pack Installer %VERSION%.exe"
Chris@63 32
Chris@63 33 @echo(
Chris@63 34 @echo Done