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
+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
+
--version "$version" \
--verbose || exit 1
--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"
echo -e "\nCREATE WIRESHARK DISK IMAGE\n"
img_name="$pkg_title.dmg"
/usr/bin/hdiutil convert "$rw_name" -format UDZO -imagekey zlib-level=9 -o "$img_name" || exit 1
rm -f "$rw_name"
/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
+