From 0770b0ac6a6ab0ac29a697a4774be93ffb334172 Mon Sep 17 00:00:00 2001 From: Gerald Combs Date: Thu, 22 Oct 2015 10:44:59 -0700 Subject: osx-app.sh: Make sure we sign our binaries. Throw an error if we don't. Change-Id: I7967fe8903f989e6e1a1e8193fb65c6ce086595b Ping-Bug: 11620 Reviewed-on: https://code.wireshark.org/review/11213 Reviewed-by: Gerald Combs --- packaging/macosx/osx-app.sh | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'packaging/macosx') diff --git a/packaging/macosx/osx-app.sh b/packaging/macosx/osx-app.sh index b12cb329c6..2ef0ce5e8d 100755 --- a/packaging/macosx/osx-app.sh +++ b/packaging/macosx/osx-app.sh @@ -424,6 +424,14 @@ if [ "$create_bundle" = "true" ]; then create_bundle fi +if [ -z "$cs_binary_list" ]; then + # Assumes Qt. + for binary in $binary_list ; do + cs_binary_list="$cs_binary_list $pkgexec/$binary" + done +fi + + echo -e "\nFixing up $bundle...\n" # Find out libs we need from Fink, MacPorts, or from a custom install @@ -707,21 +715,29 @@ if [ -n "$CODE_SIGN_IDENTITY" ] ; then security find-identity -v -s "$CODE_SIGN_IDENTITY" -p codesigning echo "Signing executables" + if [ -z "$cs_binary_list" ] ; then + echo "No executables specified for code signing." + exit 1 + fi for binary in $cs_binary_list ; do codesign_file "$binary" done + echo "Signing frameworks" for framework in $pkglib/*.framework/Versions/*/* ; do codesign_file "$framework" done + echo "Signing libraries" for library in $pkglib/*.dylib ; do codesign_file "$library" done + echo "Signing plugins" for plugin in $pkgplugin/*.so ; do codesign_file "$plugin" done + echo "Signing $bundle" codesign_file "$bundle" else -- cgit v1.2.3