add munkishim signing to make_munki_mpkg.sh (#1170)

This commit is contained in:
Kory Prince
2023-03-20 17:08:04 -05:00
committed by GitHub
parent 62a75d6384
commit 9006c818e8
+11
View File
@@ -383,6 +383,17 @@ if [ "$XCODEBUILD_RESULT" -ne 0 ]; then
fi
MUNKISHIM="$MUNKIROOT/code/apps/munkishim/build/Release/munkishim"
# sign munkishim
if [ "$APPSIGNINGCERT" != "" ]; then
echo "Signing munkishim"
/usr/bin/codesign -f -s "$APPSIGNINGCERT" --options runtime --verbose $MUNKISHIM
SIGNING_RESULT="$?"
if [ "$SIGNING_RESULT" -ne 0 ]; then
echo "Error signing munkishim: $SIGNING_RESULT"
exit 2
fi
fi
# Create a PackageInfo file.
makeinfo() {
pkg="$1"