forked from osmocom/wireshark
If CODE_SIGN_IDENTITY is set use it to sign the app bundle and the
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
This commit is contained in:
parent
fb9d4296be
commit
c4dcd0ca24
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue