Permalink
Browse files

developer-id code signing

  • Loading branch information...
1 parent 182bdc2 commit ce0e8a4ff8dcb9a4f65d42a786d8936ab62ec265 @jjallaire jjallaire committed May 21, 2012
Showing with 20 additions and 0 deletions.
  1. +20 −0 package/osx/CMakeLists.txt
View
20 package/osx/CMakeLists.txt
@@ -1,4 +1,24 @@
+# developer-id code signing
+if (RSTUDIO_PACKAGE_BUILD)
+ INSTALL(CODE "
+ list (APPEND CODESIGN_TARGETS \"\${CMAKE_INSTALL_PREFIX}/RStudio.app\")
+
+ file(GLOB_RECURSE CODESIGN_PLUGINS \"\${CMAKE_INSTALL_PREFIX}/RStudio.app/Contents/plugins\")
+ list (APPEND CODESIGN_TARGETS \${CODESIGN_PLUGINS})
+
+ file(GLOB_RECURSE CODESIGN_FRAMEWORKS \"\${CMAKE_INSTALL_PREFIX}/RStudio.app/Contents/Frameworks\")
+ list (APPEND CODESIGN_TARGETS \${CODESIGN_FRAMEWORKS})
+
+ file(GLOB_RECURSE CODESIGN_MACOS \"\${CMAKE_INSTALL_PREFIX}/RStudio.app/Contents/MacOS\")
+ list (APPEND CODESIGN_TARGETS \${CODESIGN_MACOS})
+
+ foreach(CODESIGN_TARGET \${CODESIGN_TARGETS})
+ execute_process(COMMAND codesign \"-s\" \"Developer ID Application: RStudio Inc.\" \"-i\" \"org.rstudio.RStudio\" \"\${CODESIGN_TARGET}\")
+ endforeach()
+ ")
+endif()
+
# package attributes
set(CPACK_PACKAGE_FILE_NAME "${CPACK_PACKAGE_NAME}-${CPACK_PACKAGE_VERSION}")

0 comments on commit ce0e8a4

Please sign in to comment.