diff --git a/tray/CMakeLists.txt b/tray/CMakeLists.txt index 5c240c8..16e4c4b 100644 --- a/tray/CMakeLists.txt +++ b/tray/CMakeLists.txt @@ -128,3 +128,8 @@ include(ConfigHeader) # create desktop file using previously defined meta data add_desktop_file() + +if (APPLE) + set_target_properties(${META_TARGET_NAME} PROPERTIES + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_SOURCE_DIR}/resources/Info.plist.in") +endif () diff --git a/tray/resources/Info.plist.in b/tray/resources/Info.plist.in new file mode 100644 index 0000000..76ac530 --- /dev/null +++ b/tray/resources/Info.plist.in @@ -0,0 +1,36 @@ + + + + + CFBundleDevelopmentRegion + English + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleGetInfoString + ${MACOSX_BUNDLE_INFO_STRING} + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleInfoDictionaryVersion + 6.0 + CFBundleLongVersionString + ${MACOSX_BUNDLE_LONG_VERSION_STRING} + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundleSignature + ???? + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CSResourcesFileMapped + + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + LSUIElement + + +