From cbbffce79aa7811a6bd9c00dc4ac955662ca0a17 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Wed, 31 Jul 2024 13:31:41 -0400 Subject: [PATCH] MacUpdater: Switch to mac-codesign script for code signing --- Source/Core/MacUpdater/CMakeLists.txt | 8 ++++++-- Tools/mac-codesign.sh | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Core/MacUpdater/CMakeLists.txt b/Source/Core/MacUpdater/CMakeLists.txt index 60abe88792..b27b466df9 100644 --- a/Source/Core/MacUpdater/CMakeLists.txt +++ b/Source/Core/MacUpdater/CMakeLists.txt @@ -54,6 +54,10 @@ foreach(sb ${STORYBOARDS}) endforeach() if(MACOS_CODE_SIGNING) - add_custom_command(TARGET MacUpdater POST_BUILD - COMMAND /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options runtime $) + add_custom_command(TARGET MacUpdater + POST_BUILD + COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh" + "${MACOS_CODE_SIGNING_IDENTITY}" + "$" + ) endif() diff --git a/Tools/mac-codesign.sh b/Tools/mac-codesign.sh index 9fb330bc6c..2b26d461ee 100755 --- a/Tools/mac-codesign.sh +++ b/Tools/mac-codesign.sh @@ -52,7 +52,7 @@ if [ -d "$TARGET_PATH" ]; then # Newlines are the only valid separator character in find's output. IFS=$'\n' - for framework in $(find "$TARGET_PATH" -not -path "*/Helpers/*" -name '*.dylib' -or -name '*.framework'); do + for framework in $(find "$TARGET_PATH" -depth -not -path "*/Helpers/*" -name '*.dylib' -or -name '*.framework'); do sign "$framework" done