Try switching back to codesign.

svn path=/trunk/; revision=53208
This commit is contained in:
Gerald Combs 2013-11-10 00:24:56 +00:00
parent a4c4ca8a75
commit e8106d01c9
1 changed files with 5 additions and 4 deletions

View File

@ -157,12 +157,13 @@ packagemaker --doc "Wireshark_package.pmdoc" \
--verbose || exit 1
if [ -n "$CODE_SIGN_IDENTITY" ] ; then
pkg_file_unsigned="$pkg_title UNSIGNED.pkg"
#pkg_file_unsigned="$pkg_title UNSIGNED.pkg"
echo -e "Signing $pkg_file"
mv "$pkg_file" "$pkg_file_unsigned" || exit 1
productsign --sign "$CODE_SIGN_IDENTITY" "$pkg_file_unsigned" "$pkg_file" || exit 1
spctl --assess --type install "$pkg_file" || exit 1
#mv "$pkg_file" "$pkg_file_unsigned" || exit 1
#productsign --sign "$CODE_SIGN_IDENTITY" "$pkg_file_unsigned" "$pkg_file" || exit 1
codesign --sign --verify "$CODE_SIGN_IDENTITY" "$pkg_file" || exit 1
spctl --assess --type install "$pkg_file" #|| exit 1
shasum "$pkg_file"
rm -rf "$pkg_dir_unsigned" "$pkg_file_unsigned" "$pkg_file_flattened"
else