annotate deploy/osx/sign.sh @ 2596:04d381f0d89a tip

Default branch is now named default on git as well as hg, in case we ever want to switch to mirroring in the other direction
author Chris Cannam
date Thu, 27 Aug 2020 15:58:56 +0100
parents 6c15b82e7e69
children
rev   line source
Chris@680 1 #!/bin/bash
Chris@514 2
Chris@2591 3 set -e
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@2591 16 set -u
Chris@2591 17
Chris@2385 18 entitlements=deploy/osx/Entitlements.plist
Chris@2385 19 helper_entitlements=deploy/osx/HelperEntitlements.plist
Chris@2068 20
Chris@514 21 for app in "$dir"/*.app; do
Chris@2068 22 find "$app" -name \*.dylib -print | while read fr; do
Chris@2385 23 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr"
Chris@2068 24 done
Chris@2385 25 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app/Contents/MacOS/Sonic Visualiser"
Chris@2385 26 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$helper_entitlements" "$app/Contents/MacOS/vamp-plugin-load-checker"
Chris@2385 27 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$helper_entitlements" "$app/Contents/MacOS/piper-vamp-simple-server"
Chris@2385 28 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app"
Chris@516 29 done
Chris@516 30