Chris@34: #!/bin/bash Chris@34: Chris@34: set -eu Chris@34: Chris@34: # Execute this from the top-level directory of the project (the one Chris@34: # that contains the .app bundle). Supply the name of the .app bundle Chris@34: # as argument Chris@34: dir="$1" Chris@34: if [ -z "$dir" ] || [ ! -d "$dir" ]; then Chris@34: echo "Usage: $0 " Chris@34: echo "Where pkgdir is the directory containing .app" Chris@34: echo "All .app bundles in pkgdir will be signed" Chris@34: exit 2 Chris@34: fi Chris@34: Chris@34: entitlements=deploy/osx/Entitlements.plist Chris@34: Chris@34: for app in "$dir"/*.app; do Chris@34: find "$app" -name \*.dylib -print | while read fr; do Chris@34: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" Chris@34: done Chris@34: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app/Contents/MacOS/Vamp Plugin Pack Installer" Chris@34: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime --entitlements "$entitlements" "$app" Chris@34: done Chris@34: