Chris@2377: #!/bin/bash Chris@2377: Chris@2377: # This script is very specific to certain Xcode and Qt versions - Chris@2377: # review before running, or do a standard build and a deployment with Chris@2377: # deploy-and-package.sh instead Chris@2377: Chris@2377: set -eu Chris@2377: Chris@2377: app="Sonic Visualiser" Chris@2377: Chris@2377: version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h` Chris@2377: Chris@2377: volume="$app"-"$version" Chris@2377: dmg="$volume".dmg Chris@2377: compatdmg="$volume-osx-10.7.dmg" Chris@2377: Chris@2377: ./repoint install Chris@2377: Chris@2377: echo Chris@2377: echo "Rebuilding for current macOS..." Chris@2377: echo Chris@2377: Chris@2377: rm -rf .qmake.stash Chris@2377: $HOME/Qt/5.13.1/clang_64/bin/qmake -r Chris@2377: make clean Chris@2377: make -j3 Chris@2377: deploy/osx/deploy-and-package.sh Chris@2377: Chris@2377: echo Chris@2377: echo "Done, images are in $dmg and $compatdmg" Chris@2377: echo Chris@2377: