Mercurial > hg > sonic-visualiser
annotate deploy/osx/build-and-package.sh @ 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 | 995a4014a5c8 |
children |
rev | line source |
---|---|
Chris@2377 | 1 #!/bin/bash |
Chris@2377 | 2 |
Chris@2377 | 3 # This script is very specific to certain Xcode and Qt versions - |
Chris@2377 | 4 # review before running, or do a standard build and a deployment with |
Chris@2377 | 5 # deploy-and-package.sh instead |
Chris@2377 | 6 |
Chris@2377 | 7 set -eu |
Chris@2377 | 8 |
Chris@2377 | 9 app="Sonic Visualiser" |
Chris@2377 | 10 |
Chris@2377 | 11 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` |
Chris@2377 | 12 |
Chris@2377 | 13 volume="$app"-"$version" |
Chris@2377 | 14 dmg="$volume".dmg |
Chris@2377 | 15 compatdmg="$volume-osx-10.7.dmg" |
Chris@2377 | 16 |
Chris@2377 | 17 ./repoint install |
Chris@2377 | 18 |
Chris@2377 | 19 echo |
Chris@2377 | 20 echo "Rebuilding for current macOS..." |
Chris@2377 | 21 echo |
Chris@2377 | 22 |
Chris@2377 | 23 rm -rf .qmake.stash |
Chris@2377 | 24 $HOME/Qt/5.13.1/clang_64/bin/qmake -r |
Chris@2377 | 25 make clean |
Chris@2377 | 26 make -j3 |
Chris@2377 | 27 deploy/osx/deploy-and-package.sh |
Chris@2377 | 28 |
Chris@2377 | 29 echo |
Chris@2377 | 30 echo "Done, images are in $dmg and $compatdmg" |
Chris@2377 | 31 echo |
Chris@2377 | 32 |