Skip to content

Commit

Permalink
Use deep signing on OS X.
Browse files Browse the repository at this point in the history
  • Loading branch information
danieldk committed Jan 14, 2017
1 parent cd18162 commit e78d857
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -473,19 +473,13 @@ if(APPLE)

# XXX - Automatically find frameworks?
if(ENABLE_CODESIGN)
INSTALL(CODE "
execute_process(COMMAND codesign --verbose --verify --sign \"${CODESIGN_IDENTITY}\" \"${APP}/Contents/Frameworks/QtCore.framework/Versions/4/QtCore\")
execute_process(COMMAND codesign --verbose --verify --sign \"${CODESIGN_IDENTITY}\" \"${APP}/Contents/Frameworks/QtGui.framework/Versions/4/QtGui\")
execute_process(COMMAND codesign --verbose --verify --sign \"${CODESIGN_IDENTITY}\" \"${APP}/Contents/Frameworks/QtNetwork.framework/Versions/4/QtNetwork\")
" COMPONENT Runtime)

if(ENABLE_SANDBOXING)
INSTALL(CODE "
execute_process(COMMAND codesign --verbose --verify --sign \"${CODESIGN_IDENTITY}\" --entitlements ${DACT_SOURCE_DIR}/resources/entitlements.plist \"${APP}\")
execute_process(COMMAND codesign --verbose --verify --deep --sign \"${CODESIGN_IDENTITY}\" --entitlements ${DACT_SOURCE_DIR}/resources/entitlements.plist \"${APP}\")
" COMPONENT Runtime)
else(ENABLE_SANDBOXING)
INSTALL(CODE "
execute_process(COMMAND codesign --verbose --verify --sign \"${CODESIGN_IDENTITY}\" \"${APP}\")
execute_process(COMMAND codesign --verbose --verify --deep --sign \"${CODESIGN_IDENTITY}\" \"${APP}\")
" COMPONENT Runtime)
endif(ENABLE_SANDBOXING)
endif(ENABLE_CODESIGN)
Expand Down

0 comments on commit e78d857

Please sign in to comment.