annotate deploy/osx/sign.sh @ 551:4328b9fd40a5

Can update these now, as AppVeyor has caught up
author Chris Cannam
date Sat, 16 Feb 2019 10:39:55 +0000
parents 1dddd90cb84e
children dd344309667f
rev   line source
Chris@100 1 #!/bin/bash
Chris@62 2
Chris@437 3 set -eu
Chris@437 4
Chris@62 5 # Execute this from the top-level directory of the project (the one
Chris@62 6 # that contains the .app bundle). Supply the name of the .app bundle
Chris@62 7 # as argument
Chris@62 8 dir="$1"
Chris@62 9 if [ -z "$dir" ] || [ ! -d "$dir" ]; then
Chris@62 10 echo "Usage: $0 <pkgdir>"
Chris@62 11 echo "Where pkgdir is the directory containing <MyApplication>.app"
Chris@62 12 echo "All .app bundles in pkgdir will be signed"
Chris@62 13 exit 2
Chris@62 14 fi
Chris@544 15
Chris@62 16 for app in "$dir"/*.app; do
Chris@544 17 find "$app" -name \*.dylib -print | while read fr; do
Chris@544 18 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$fr"
Chris@100 19 done
Chris@544 20 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app/Contents/MacOS/Sonic Visualiser"
Chris@544 21 codesign -s "Developer ID Application: Chris Cannam" -fv --deep --options runtime "$app"
Chris@62 22 done
Chris@62 23