annotate deploy/clean-build-and-package.bat @ 80:12bf881f9f9f

Windows packaging bits
author Chris Cannam
date Wed, 19 Feb 2020 11:55:46 +0000
parents 58e766558fac
children 732a4bf233df
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@80 16 del /q /s build_win64
Chris@80 17 call .\deploy\win64\build-64.bat sign
Chris@63 18 if %errorlevel% neq 0 exit /b %errorlevel%
Chris@63 19
Chris@63 20 mkdir packages
Chris@80 21 copy "build_win64\release\Vamp Plugin Pack Installer.exe" "packages\Vamp Plugin Pack Installer %VERSION%.exe"
Chris@63 22
Chris@63 23 @echo(
Chris@63 24 @echo Done