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() endforeach()
if(MACOS_CODE_SIGNING) if(MACOS_CODE_SIGNING)
add_custom_command(TARGET MacUpdater POST_BUILD add_custom_command(TARGET MacUpdater
COMMAND /usr/bin/codesign -f -s "${MACOS_CODE_SIGNING_IDENTITY}" --deep --options runtime $<TARGET_BUNDLE_DIR:MacUpdater>) POST_BUILD
COMMAND "${CMAKE_SOURCE_DIR}/Tools/mac-codesign.sh"
"${MACOS_CODE_SIGNING_IDENTITY}"
"$<TARGET_BUNDLE_DIR:MacUpdater>"
)
endif() endif()

View File

@ -52,7 +52,7 @@ if [ -d "$TARGET_PATH" ]; then
# Newlines are the only valid separator character in find's output. # Newlines are the only valid separator character in find's output.
IFS=$'\n' 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" sign "$framework"
done done