From 37a7b1e5c95fc08af231455931ed3c39b314731d Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Wed, 31 Jul 2024 13:32:52 -0400 Subject: [PATCH] DolphinQt: Switch to mac-codesign script for code signing --- Source/Core/DolphinQt/CMakeLists.txt | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/Source/Core/DolphinQt/CMakeLists.txt b/Source/Core/DolphinQt/CMakeLists.txt index 071b56972f..3f8c087cd1 100644 --- a/Source/Core/DolphinQt/CMakeLists.txt +++ b/Source/Core/DolphinQt/CMakeLists.txt @@ -637,9 +637,13 @@ if(APPLE) endif() if(MACOS_CODE_SIGNING) - # Code sign make file builds - add_custom_command(TARGET dolphin-emu POST_BUILD - COMMAND /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options=runtime --entitlements "${CMAKE_SOURCE_DIR}/Source/Core/DolphinQt/DolphinEmu$<$:Debug>.entitlements" "$") + add_custom_command(TARGET dolphin-emu + POST_BUILD + COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh" + "-e" "${CMAKE_CURRENT_SOURCE_DIR}/DolphinEmu$<$:Debug>.entitlements" + "${MACOS_CODE_SIGNING_IDENTITY}" + "${BUNDLE_PATH}" + ) endif() else() install(TARGETS dolphin-emu RUNTIME DESTINATION ${CMAKE_INSTALL_BINDIR})