Mercurial > hg > sonic-visualiser
annotate deploy/clean-build-and-package.bat @ 2589:27de601a2729
Looks like this is the one we want
author | Chris Cannam |
---|---|
date | Thu, 06 Aug 2020 21:11:39 +0100 |
parents | c956435cb3e8 |
children |
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@2398 | 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@2398 | 23 @echo( |
Chris@2389 | 24 @echo Done |