KnowledgeHub
Questions
Tags
Users
Search
Alex Rivera
|
Logout
Edit Question
Title
Body
I need to create installer for a product for Mac OS X using CPack with PackageMaker as the generator. I have done some small work, but I have many things that I want to find out. set(CPACK_PACKAGE_NAME "MyApp") set(CPACK_PACKAGE_VERSION "${CPACK_PACKAGE_VERSION}") set(CMAKE_INSTALL_PREFIX /Applications) set(CPACK_PACKAGING_INSTALL_PREFIX ${CMAKE_INSTALL_PREFIX}) set(CPACK_RESOURCE_FILE_README "${PACKAGE_BINARY_DIR}/Readme.txt") set(CPACK_RESOURCE_FILE_LICENSE "${PACKAGE_BINARY_DIR}/EULA.txt") set(CPACK_RESOURCE_FILE_WELCOME "${PACKAGE_BINARY_DIR}/Welcome.txt") set(CPACK_GENERATOR PackageMaker) install(DIRECTORY ${PACKAGE_BINARY_DIR}/my_app.app DESTINATION ${CMAKE_INSTALL_PREFIX}/) install(PROGRAMS ${PACKAGE_BINARY_DIR}/other_executable DESTINATION ${CMAKE_INSTALL_PREFIX}/my_app.app/Contents/MacOS/) install(FILES ${PACKAGE_BINARY_DIR}/com.my_app.my_app_daemon.plist DESTINATION ${CMAKE_INSTALL_PREFIX}/Resources) Can you explain how to: How to add custom icon to my application (the one when you open Applications directory)? How to add a custom background to the visual installer? How to properly use the flags for post installer scripts so that the scripts will be working? What is the best way to add "other_executable" to my application? Am I using the proper way to install my_app.app? How to add shortcut (or whatever else is used, of my application to the Dock)?
Tags (comma-separated)
Save Edits
Cancel