changeset 63:58e766558fac

Add overarching rebuild and package script
author Chris Cannam
date Tue, 11 Feb 2020 09:47:44 +0000
parents 3fd66c30eb28
children 0c94d3065ecd
files deploy/clean-build-and-package deploy/clean-build-and-package.bat
diffstat 2 files changed, 56 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/clean-build-and-package	Tue Feb 11 09:47:44 2020 +0000
@@ -0,0 +1,33 @@
+#!/bin/bash
+
+set -eu
+
+current=$(hg id | awk '{ print $1; }')
+
+case "$current" in
+    *+) echo "ERROR: Current working copy has been modified - not proceeding";exit 2;;
+    *);;
+esac
+
+version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
+
+mkdir -p packages
+echo
+
+if [ -d /Applications ]; then
+
+    app="Vamp Plugin Pack Installer"
+    volume="$app"-"$version"
+    dmg="$volume".dmg
+
+    deploy/osx/build-and-package.sh
+
+    mv "$dmg" packages/
+
+else
+
+    echo "Not yet implemented for this platform"
+fi
+
+echo "Done"
+
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/deploy/clean-build-and-package.bat	Tue Feb 11 09:47:44 2020 +0000
@@ -0,0 +1,23 @@
+@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 PACK_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_win64\vamp-plugin-pack.msi packages\vamp-plugin-pack-%VERSION%-win64.msi
+
+@echo(
+@echo Done