Skip to content

Commit

Permalink
OS X|CMake: Re-sign application bundle after tools installation
Browse files Browse the repository at this point in the history
Tools install certain files to the application bundle, and its
signature check will fail if it contains additional files.
  • Loading branch information
skyjake committed Mar 25, 2016
1 parent be54b02 commit 32e4052
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doomsday/cmake/Macros.cmake
Expand Up @@ -443,7 +443,7 @@ macro (deng_codesign target)
endforeach (fn)
message (STATUS \"Signing ${_outName}.app using '${DENG_CODESIGN_APP_CERT}'...\")
execute_process (COMMAND ${CODESIGN_COMMAND} --verbose
-s \"${DENG_CODESIGN_APP_CERT}\"
-s --force \"${DENG_CODESIGN_APP_CERT}\"
\"\${CMAKE_INSTALL_PREFIX}/${_outName}.app\"
)")
endif ()
Expand Down
6 changes: 6 additions & 0 deletions doomsday/tools/CMakeLists.txt
Expand Up @@ -20,3 +20,9 @@ if (UNIX)
endif ()
add_subdirectory (texc)
add_subdirectory (wadtool)

if (APPLE AND TARGET client)
# Tools install files into the Doomsday.app bundle, so it must now be
# signed again.
deng_codesign(client)
endif ()

0 comments on commit 32e4052

Please sign in to comment.