annotate deploy/clean-build-and-package @ 69:6b2b4bcbe4e5

Console application, not app bundle
author Chris Cannam
date Thu, 13 Feb 2020 11:34:55 +0000
parents 58e766558fac
children e7badb8450d8
rev   line source
Chris@63 1 #!/bin/bash
Chris@63 2
Chris@63 3 set -eu
Chris@63 4
Chris@63 5 current=$(hg id | awk '{ print $1; }')
Chris@63 6
Chris@63 7 case "$current" in
Chris@63 8 *+) echo "ERROR: Current working copy has been modified - not proceeding";exit 2;;
Chris@63 9 *);;
Chris@63 10 esac
Chris@63 11
Chris@63 12 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
Chris@63 13
Chris@63 14 mkdir -p packages
Chris@63 15 echo
Chris@63 16
Chris@63 17 if [ -d /Applications ]; then
Chris@63 18
Chris@63 19 app="Vamp Plugin Pack Installer"
Chris@63 20 volume="$app"-"$version"
Chris@63 21 dmg="$volume".dmg
Chris@63 22
Chris@63 23 deploy/osx/build-and-package.sh
Chris@63 24
Chris@63 25 mv "$dmg" packages/
Chris@63 26
Chris@63 27 else
Chris@63 28
Chris@63 29 echo "Not yet implemented for this platform"
Chris@63 30 fi
Chris@63 31
Chris@63 32 echo "Done"
Chris@63 33