MacUpdater: Switch to mac-codesign script for code signing

This commit is contained in:
OatmealDome 2024-07-31 13:31:41 -04:00
parent 4883889e23
commit cbbffce79a
2 changed files with 7 additions and 3 deletions

View File

@ -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 $<TARGET_BUNDLE_DIR:MacUpdater>)
add_custom_command(TARGET MacUpdater
POST_BUILD
COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh"
"${MACOS_CODE_SIGNING_IDENTITY}"
"$<TARGET_BUNDLE_DIR:MacUpdater>"
)
endif()

View File

@ -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