changeset 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 5234553bde5c
children 1f392d58ee88 32107caa1aaa
files deploy/clean-build-and-package.bat deploy/win64/build-and-package.bat
diffstat 2 files changed, 25 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/clean-build-and-package.bat	Fri Oct 18 14:20:32 2019 +0100
@@ -0,0 +1,24 @@
+@rem  Run this from within the top-level dir: deploy\clean-build-and-package
+@echo on
+
+@set /p VERSION=<version.h
+@set VERSION=%VERSION:#define SV_VERSION "=%
+set VERSION=%VERSION:"=%
+
+@echo ""
+@set YN=y
+@set /p YN="Proceed to clean, rebuild, package, and sign version %VERSION% [Yn] ?"
+
+@if "%YN%" == "Y" set YN=y
+@if "%YN%" neq "y" exit /b 3
+
+@echo Proceeding
+call .\deploy\win64\build-and-package.bat sign
+if %errorlevel% neq 0 exit /b %errorlevel%
+
+mkdir packages
+copy build_win32\sonic-visualiser.msi packages\sonic-visualiser-%VERSION%-win32.msi
+copy build_win64\sonic-visualiser.msi packages\sonic-visualiser-%VERSION%-win64.msi
+
+@echo ""
+@echo Done
--- a/deploy/win64/build-and-package.bat	Fri Oct 18 11:31:34 2019 +0100
+++ b/deploy/win64/build-and-package.bat	Fri Oct 18 14:20:32 2019 +0100
@@ -94,5 +94,6 @@
 
 set PATH=%ORIGINALPATH%
 
+cd %STARTPWD%
 @echo Done