mirror of
https://github.com/LizardByte/Sunshine.git
synced 2026-08-18 11:06:23 +00:00
build(macOS): sign only valid framework bundles (#5484)
This commit is contained in:
@ -96,13 +96,17 @@ qt6_deploy_runtime_dependencies(
|
||||
# Sign bundled frameworks and plugins before signing the app itself.
|
||||
set(_fw_dir \"\${_app}/Contents/Frameworks\")
|
||||
if(EXISTS \"\${_fw_dir}\")
|
||||
file(GLOB_RECURSE _sign_items
|
||||
# Include framework directories; GLOB_RECURSE omits them.
|
||||
# Framework bundles are top-level directories.
|
||||
file(GLOB _framework_items
|
||||
LIST_DIRECTORIES true
|
||||
\"\${_fw_dir}/*.framework\"
|
||||
)
|
||||
# Recursively collect only library files.
|
||||
file(GLOB_RECURSE _sign_items
|
||||
\"\${_fw_dir}/*.dylib\"
|
||||
\"\${_app}/Contents/PlugIns/*.dylib\"
|
||||
)
|
||||
list(APPEND _sign_items \${_framework_items})
|
||||
|
||||
foreach(item IN LISTS _sign_items)
|
||||
execute_process(COMMAND /usr/bin/codesign --verbose=2
|
||||
|
||||
Reference in New Issue
Block a user