annotate deploy/osx/sign.sh @ 2396:ab09e05b0d35

Restore this check
author Chris Cannam
date Tue, 22 Oct 2019 17:13:50 +0100
parents f6398deea932
children 6c15b82e7e69
rev   line source
Chris@680 1 #!/bin/bash
Chris@514 2
cannam@1286 3 set -eu
cannam@1286 4
Chris@514 5 # Execute this from the top-level directory of the project (the one
Chris@514 6 # that contains the .app bundle). Supply the name of the .app bundle
Chris@514 7 # as argument
Chris@514 8 dir="$1"
Chris@514 9 if [ -z "$dir" ] || [ ! -d "$dir" ]; then
Chris@514 10 echo "Usage: $0 <pkgdir>"
Chris@514 11 echo "Where pkgdir is the directory containing <MyApplication>.app"
Chris@514 12 echo "All .app bundles in pkgdir will be signed"
Chris@514 13 exit 2
Chris@514 14 fi
Chris@2068 15
Chris@2385 16 entitlements=deploy/osx/Entitlements.plist
Chris@2385 17 helper_entitlements=deploy/osx/HelperEntitlements.plist
Chris@2068 18
Chris@514 19 for app in "$dir"/*.app; do
Chris@2068 20 find "$app" -name \*.dylib -print | while read fr; do
Chris@2385 21 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr"
Chris@2068 22 done
Chris@2385 23 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app/Contents/MacOS/Sonic Visualiser"
Chris@2385 24 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$helper_entitlements" "$app/Contents/MacOS/vamp-plugin-load-checker"
Chris@2385 25 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$helper_entitlements" "$app/Contents/MacOS/piper-vamp-simple-server"
Chris@2385 26 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app"
Chris@516 27 done
Chris@516 28