macOS/QuickLook: support rich thumbnail #107072
|
@ -1364,10 +1364,10 @@ elseif(APPLE)
|
|||
TARGETS blender-thumbnailer
|
||||
DESTINATION Blender.app/Contents/Plugins
|
||||
)
|
||||
set(BL_CODESIGN_ENTITLEMENTS "${OSX_APP_SOURCEDIR}/../thumbnail_entitlements.plist")
|
||||
set(THUMBNAIL_ENTITLEMENTS "${CMAKE_SOURCE_DIR}/release/darwin/thumbnail_entitlements.plist")
|
||||
ankitm marked this conversation as resolved
Outdated
|
||||
install(CODE
|
||||
Brecht Van Lommel
commented
Does this now run on every Does this now run on every `make install`? That would slow down incremental builds. Is there a way to make it run only when the appex is updated?
Ankit Meel
commented
insignificant ```
time codesign --entitlements release/darwin/thumbnail_entitlements.plist --force --deep --sign - ../build_darwin_debug_lite/bin/Blender.app/Contents/Plugins/blender-thumbnailer.appex
../build_darwin_debug_lite/bin/Blender.app/Contents/Plugins/blender-thumbnailer.appex: replacing existing signature
codesign --entitlements release/darwin/thumbnail_entitlements.plist --force 0.02s user 0.02s system 72% cpu 0.053 total
```
insignificant
Even my poor machine makes it unnoticeable. We aren't signing the full blender.app.
|
||||
"execute_process(COMMAND codesign
|
||||
--deep --force --sign - --entitlements \"${BL_CODESIGN_ENTITLEMENTS}\" --timestamp=none
|
||||
--deep --force --sign - --entitlements \"${THUMBNAIL_ENTITLEMENTS}\" --timestamp=none
|
||||
\"${EXECUTABLE_OUTPUT_PATH}/Blender.app/Contents/Plugins/blender-thumbnailer.appex\"
|
||||
)"
|
||||
)
|
||||
|
|
Loading…
Reference in New Issue
Not using relative path is more clear I think, their relative location has no particular importance:
${CMAKE_SOURCE_DIR}/release/darwin/thumbnail_entitlements.plist
.Don't invent new
BL_
prefix for variable names, suggest to useTHUMBNAIL_ENTITLEMENTS