annotate deploy/osx/sign.sh @ 37:28b1dd4ee370

Try separating out platform script subdirs
author Chris Cannam
date Mon, 16 Dec 2019 14:37:00 +0000
parents efb73feb1061
children
rev   line source
Chris@34 1 #!/bin/bash
Chris@34 2
Chris@34 3 set -eu
Chris@34 4
Chris@34 5 # Execute this from the top-level directory of the project (the one
Chris@34 6 # that contains the .app bundle). Supply the name of the .app bundle
Chris@34 7 # as argument
Chris@34 8 dir="$1"
Chris@34 9 if [ -z "$dir" ] || [ ! -d "$dir" ]; then
Chris@34 10 echo "Usage: $0 <pkgdir>"
Chris@34 11 echo "Where pkgdir is the directory containing <MyApplication>.app"
Chris@34 12 echo "All .app bundles in pkgdir will be signed"
Chris@34 13 exit 2
Chris@34 14 fi
Chris@34 15
Chris@34 16 entitlements=deploy/osx/Entitlements.plist
Chris@34 17
Chris@34 18 for app in "$dir"/*.app; do
Chris@34 19 find "$app" -name \*.dylib -print | while read fr; do
Chris@34 20 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr"
Chris@34 21 done
Chris@34 22 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app/Contents/MacOS/Vamp Plugin Pack Installer"
Chris@34 23 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app"
Chris@34 24 done
Chris@34 25