If CODE_SIGN_IDENTITY is set use it to sign the app bundle and the
authorGerald Combs <gerald@wireshark.org>
Tue, 15 Oct 2013 23:03:48 +0000 (23:03 -0000)
committerGerald Combs <gerald@wireshark.org>
Tue, 15 Oct 2013 23:03:48 +0000 (23:03 -0000)
installer package. Add commented-out code to sign the .dmg as well in
case Apple supports that in the future.

svn path=/trunk/; revision=52633

packaging/macosx/osx-app.sh
packaging/macosx/osx-dmg.sh.in

index a5a84eaecdb88a9dd81ca6b19ea0d745f8346cda..dc55bef916d63987333f9a37745603043a69ee78 100755 (executable)
@@ -579,4 +579,10 @@ else
 
 fi
 
+if [ -n "$CODE_SIGN_IDENTITY" ] ; then
+       echo -e "Signing $package"
+       codesign --sign "$CODE_SIGN_IDENTITY" --verbose "$package" || exit 1
+       codesign --verify --verbose "$package" || exit 1
+fi
+
 exit 0
index ec36dc19718ece80527fcda82f215a22cd3ac7ec..920b6dab6c325613a3a6bfc0c46c4af14ae4d257 100755 (executable)
@@ -155,6 +155,12 @@ packagemaker --doc "Wireshark_package.pmdoc" \
     --version "$version" \
     --verbose || exit 1
 
+if [ -n "$CODE_SIGN_IDENTITY" ] ; then
+       echo -e "Signing the $pkg_file"
+       codesign --sign "$CODE_SIGN_IDENTITY" --verbose "$pkg_file" || exit 1
+       codesign --verify --verbose "$pkg_file" || exit 1
+fi
+
 echo -e "\nCREATE WIRESHARK DISK IMAGE\n"
 img_name="$pkg_title.dmg"
 
@@ -245,4 +251,10 @@ fi
 /usr/bin/hdiutil convert "$rw_name" -format UDZO -imagekey zlib-level=9 -o "$img_name" || exit 1
 rm -f "$rw_name"
 
+#if [ -n "$CODE_SIGN_IDENTITY" ] ; then
+#      echo -e "Signing the $img_name"
+#      codesign --sign "$CODE_SIGN_IDENTITY" --verbose "$img_name" || exit 1
+#      codesign --verify --verbose "$img_name" || exit 1
+#fi
+
 exit 0