Mercurial > hg > sonic-visualiser
annotate deploy/clean-build-and-package.bat @ 2389:0a2cdcbc22e6
Single script to rebuild, package, and copy properly named package to packages directory
author | Chris Cannam |
---|---|
date | Fri, 18 Oct 2019 14:20:32 +0100 |
parents | |
children | c956435cb3e8 |
rev | line source |
---|---|
Chris@2389 | 1 @rem Run this from within the top-level dir: deploy\clean-build-and-package |
Chris@2389 | 2 @echo on |
Chris@2389 | 3 |
Chris@2389 | 4 @set /p VERSION=<version.h |
Chris@2389 | 5 @set VERSION=%VERSION:#define SV_VERSION "=% |
Chris@2389 | 6 set VERSION=%VERSION:"=% |
Chris@2389 | 7 |
Chris@2389 | 8 @echo "" |
Chris@2389 | 9 @set YN=y |
Chris@2389 | 10 @set /p YN="Proceed to clean, rebuild, package, and sign version %VERSION% [Yn] ?" |
Chris@2389 | 11 |
Chris@2389 | 12 @if "%YN%" == "Y" set YN=y |
Chris@2389 | 13 @if "%YN%" neq "y" exit /b 3 |
Chris@2389 | 14 |
Chris@2389 | 15 @echo Proceeding |
Chris@2389 | 16 call .\deploy\win64\build-and-package.bat sign |
Chris@2389 | 17 if %errorlevel% neq 0 exit /b %errorlevel% |
Chris@2389 | 18 |
Chris@2389 | 19 mkdir packages |
Chris@2389 | 20 copy build_win32\sonic-visualiser.msi packages\sonic-visualiser-%VERSION%-win32.msi |
Chris@2389 | 21 copy build_win64\sonic-visualiser.msi packages\sonic-visualiser-%VERSION%-win64.msi |
Chris@2389 | 22 |
Chris@2389 | 23 @echo "" |
Chris@2389 | 24 @echo Done |