diff --git a/shell/CMakeLists.txt b/shell/CMakeLists.txt --- a/shell/CMakeLists.txt +++ b/shell/CMakeLists.txt @@ -33,6 +33,14 @@ target_link_libraries(okular KF5::Activities) endif() +# Info.plist for the Mac OS bundle +if (APPLE) + set_target_properties(okular PROPERTIES MACOSX_BUNDLE_INFO_PLIST ${CMAKE_CURRENT_SOURCE_DIR}/MacOSXBundleInfo.plist.in) + set_target_properties(okular PROPERTIES MACOSX_BUNDLE_SHORT_VERSION_STRING "${PROJECT_VERSION}") + set_target_properties(okular PROPERTIES MACOSX_BUNDLE_BUNDLE_VERSION "${PROJECT_VERSION}") + set_target_properties(okular PROPERTIES MACOSX_BUNDLE_COPYRIGHT "2002-2018 The Okular Authors") +endif (APPLE) + install(TARGETS okular ${KDE_INSTALL_TARGETS_DEFAULT_ARGS}) diff --git a/shell/MacOSXBundleInfo.plist.in b/shell/MacOSXBundleInfo.plist.in new file mode 100644 --- /dev/null +++ b/shell/MacOSXBundleInfo.plist.in @@ -0,0 +1,337 @@ + + + + + CFBundleDevelopmentRegion + en + CFBundleDisplayName + Okular + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + CFBundleIdentifier + org.kde.Okular + CFBundleInfoDictionaryVersion + 6.0 + CFBundleName + Okular + CFBundlePackageType + APPL + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + NSHumanReadableCopyright + ${MACOSX_BUNDLE_COPYRIGHT} + NSPrincipalClass + NSApplication + CFBundleDocumentTypes + + + CFBundleTypeName + PDF + CFBundleTypeRole + Editor + LSItemContentTypes + + com.adobe.pdf + + NSExportableTypes + + com.adobe.pdf + public.plain-text + + + + CFBundleTypeName + CHM + CFBundleTypeRole + Viewer + LSItemContentTypes + + com.microsoft.chm + + + + CFBundleTypeName + DjVu + CFBundleTypeRole + Viewer + LSItemContentTypes + + com.lizardtech.djvu + + + + CFBundleTypeName + DVI + CFBundleTypeRole + Viewer + LSItemContentTypes + + org.tug.tex.dvi + + + + CFBundleTypeName + EPUB + CFBundleTypeRole + Viewer + LSItemContentTypes + + org.idpf.epub-container + + NSExportableTypes + + com.adobe.pdf + org.oasis.opendocument.text + public.html + public.plain-text + + + + CFBundleTypeName + FictionBook + CFBundleTypeRole + Viewer + LSItemContentTypes + + org.fictionbook.fb2 + + NSExportableTypes + + com.adobe.pdf + org.oasis.opendocument.text + public.html + public.plain-text + + + + CFBundleTypeName + Images + CFBundleTypeRole + Viewer + LSItemContentTypes + + public.image + + + + CFBundleTypeName + OpenDocument Text + CFBundleTypeRole + Viewer + LSItemContentTypes + + org.oasis-open.opendocument.text + + NSExportableTypes + + com.adobe.pdf + org.oasis.opendocument.text + public.html + public.plain-text + + + + CFBundleTypeName + Plain Text + CFBundleTypeRole + Viewer + LSHandlerRank + Alternate + LSItemContentTypes + + public.plain-text + + NSExportableTypes + + com.adobe.pdf + org.oasis.opendocument.text + public.html + public.plain-text + + + + CFBundleTypeName + PostScript + CFBundleTypeRole + Viewer + LSItemContentTypes + + com.adobe.postscript + + + + CFBundleTypeName + XPS + CFBundleTypeRole + Viewer + LSItemContentTypes + + com.microsoft.xps + + NSExportableTypes + + public.plain-text + + + + UTImportedTypeDeclarations + + + UTTypeConformsTo + + public.data + public.content + + UTTypeDescription + DjVu + UTTypeIdentifier + com.lizardtech.djvu + UTTypeTagSpecification + + public.filename-extension + + djv + djvu + + public.mime-type + + image/djvu + image/vnd.djvu + image/x-dejavu + image/x-djvu + image/x-iw44 + image/x.djvu + + + + + UTTypeConformsTo + + public.data + + UTTypeDescription + Microsoft Compiled HTML Help + UTTypeIdentifier + com.microsoft.chm + UTTypeTagSpecification + + public.filename-extension + + chm + + public.mime-type + + application/vnd.ms-htmlhelp + + + + + UTTypeConformsTo + + public.data + + UTTypeDescription + Microsoft XML Paper Specification + UTTypeIdentifier + com.microsoft.xps + UTTypeTagSpecification + + public.filename-extension + + xps + + public.mime-type + + application/vnd.ms-xpsdocument + + + + + UTTypeConformsTo + + public.data + + UTTypeDescription + FictionBook + UTTypeIdentifier + org.fictionbook.fb2 + UTTypeTagSpecification + + public.filename-extension + + fb2 + + + + + UTTypeConformsTo + + public.data + public.composite-content + + UTTypeDescription + Electronic Publication + UTTypeIdentifier + org.idpf.epub-container + UTTypeTagSpecification + + public.filename-extension + + epub + + public.mime-type + + application/epub+zip + + + + + UTTypeConformsTo + + public.data + public.content + + UTTypeDescription + OpenDocument Text + UTTypeIdentifier + org.oasis-open.opendocument.text + UTTypeTagSpecification + + public.filename-extension + + odt + + public.mime-type + + application/vnd.oasis.opendocument.text + + + + + UTTypeConformsTo + + public.data + + UTTypeDescription + TeX DVI + UTTypeIdentifier + org.tug.tex.dvi + UTTypeTagSpecification + + public.filename-extension + + dvi + + public.mime-type + + application/x-dvi + + + + + +