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@62: for app in "$dir"/*.app; do Chris@544: find "$app" -name \*.dylib -print | while read fr; do Chris@544: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr" Chris@100: done Chris@544: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app/Contents/MacOS/Sonic Visualiser" Chris@544: codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app" Chris@62: done Chris@62: