annotate deploy/osx/deploy-and-run.sh @ 2265:d33dff02b39b sandbox-notarize

Work on sandboxing (possibly) and using the hardened runtime for notarization. Supply appropriate bundle ID for helpers as well as main application, and request inherited sandbox entitlements. Currently works with sandboxing (apparently) but not yet with the hardened runtime, where we can't load plugins signed by third parties even with the com.apple.security.cs.disable-library-validation entitlement because their team IDs don't match the host. Possibly that exception is supposed to be requested some other way?
author Chris Cannam
date Thu, 25 Apr 2019 16:46:02 +0100
parents
children
rev   line source
Chris@2265 1 #!/bin/bash
Chris@2265 2
Chris@2265 3 set -e
Chris@2265 4
Chris@2265 5 # WARNING: Destructive, makes some assumptions about layout
Chris@2265 6
Chris@2265 7 source="Sonic Visualiser.app"
Chris@2265 8 dmg="Sonic Visualiser"
Chris@2265 9
Chris@2265 10 app=`basename "$source" .app`
Chris@2265 11
Chris@2265 12 set -u
Chris@2265 13
Chris@2265 14 version=`perl -p -e 's/^[^"]*"([^"]*)".*$/$1/' version.h`
Chris@2265 15
Chris@2265 16 rm -rf "$source" "$app-$version" "$app-$version.dmg"
Chris@2265 17
Chris@2265 18 umount "/Volumes/$app-$version"
Chris@2265 19
Chris@2265 20 make
Chris@2265 21 deploy/osx/deploy.sh "$source" "$dmg"
Chris@2265 22
Chris@2265 23 open "$app-$version.dmg"
Chris@2265 24 sleep 5
Chris@2265 25 open "/Volumes/$app-$version/$app.app"
Chris@2265 26