Don't unnecessarily sign iOS/tvOS cores/libraries

This commit is contained in:
Eric Warmenhoven 2023-04-27 23:48:27 -04:00 committed by LibretroAdmin
parent 9d697fedcb
commit 13fc4cbda3

View File

@ -55,15 +55,19 @@ IFS="
# Loop through all items.
for ITEM in $ITEMS;
do
echo "Signing '${ITEM}'"
codesign --force --verbose --sign "${CODE_SIGN_IDENTITY_FOR_ITEMS}" "${ITEM}"
RESULT=$?
if [ "$RESULT" != 0 ] ; then
echo "Failed to sign '${ITEM}'."
IFS=$SAVED_IFS
exit 1
if codesign --display -r- "${ITEM}" | grep -q "${CODE_SIGN_IDENTITY_FOR_ITEMS}" ; then
echo "Skipping '${ITEM}', already signed"
else
echo "Signing '${ITEM}'"
codesign --force --verbose --sign "${CODE_SIGN_IDENTITY_FOR_ITEMS}" "${ITEM}"
RESULT=$?
if [ "$RESULT" != 0 ] ; then
echo "Failed to sign '${ITEM}'."
IFS=$SAVED_IFS
exit 1
fi
fi
done
# Restore $IFS.
IFS=$SAVED_IFS
IFS=$SAVED_IFS