From 40b5af144c487ee875a930d7ec282e675af2d561 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Thu, 21 Sep 2023 07:11:56 -0600 Subject: [PATCH] macos: fix find predicate order to actually exclude MIDI files from codesign --- tools/osx_packaging/osx_build | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/osx_packaging/osx_build b/tools/osx_packaging/osx_build index bff7678f29..8540e95391 100755 --- a/tools/osx_packaging/osx_build +++ b/tools/osx_packaging/osx_build @@ -897,7 +897,7 @@ if test -n "${APPLE_DEVELOPER_ID_FOR_APPLICATION}"; then echo "signing the main app" # Sign everything from inside level working out, but skip MIDI files includes (there are too many to reasonably sign) - find ${PRODUCT_PKG_DIR}/${APPROOT}/Resources -type f -print0 -not -name \*.mid | xargs -0 -I {} -P 7 codesign --verbose --timestamp ${HARDENED_OPTIONS} --force --sign "${APPLE_DEVELOPER_ID_FOR_APPLICATION}" "{}" + find ${PRODUCT_PKG_DIR}/${APPROOT}/Resources -type f -not -name \*.mid -print0 | xargs -0 -I {} -P 7 codesign --verbose --timestamp ${HARDENED_OPTIONS} --force --sign "${APPLE_DEVELOPER_ID_FOR_APPLICATION}" "{}" find ${PRODUCT_PKG_DIR}/${APPROOT}/lib -type f -print0 | xargs -0 -I {} -P 7 codesign --verbose --timestamp ${HARDENED_OPTIONS} --force --sign "${APPLE_DEVELOPER_ID_FOR_APPLICATION}" "{}" find ${PRODUCT_PKG_DIR}/${APPROOT}/MacOS -name "${lower_case_appname}${major_version}-*" -print0 | xargs -0 -I {} -P 7 codesign --verbose --timestamp ${HARDENED_OPTIONS} --force --sign "${APPLE_DEVELOPER_ID_FOR_APPLICATION}" "{}"