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