diff --git a/share/qt/Info.plist.cmake.in b/share/qt/Info.plist.cmake.in new file mode 100644 --- /dev/null +++ b/share/qt/Info.plist.cmake.in @@ -0,0 +1,106 @@ + + + + + LSMinimumSystemVersion + 10.10.0 + + LSArchitecturePriority + + x86_64 + + + CFBundleIconFile + ${MACOSX_BUNDLE_ICON_FILE} + + CFBundlePackageType + APPL + + CFBundleGetInfoString + ${MACOSX_BUNDLE_INFO_STRING} + + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + + CFBundleSignature + ???? + + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + + LSHasLocalizedDisplayName + + + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + + CFBundleURLTypes + + + CFBundleTypeRole + Editor + CFBundleURLName + org.bitcoincash.BitcoinPayment + CFBundleURLSchemes + + bitcoincash + + + + + UTExportedTypeDeclarations + + + UTTypeIdentifier + org.bitcoincash.paymentrequest + UTTypeDescription + Bitcoin Cash payment request + UTTypeConformsTo + + public.data + + UTTypeTagSpecification + + public.mime-type + application/bitcoincash-paymentrequest + public.filename-extension + + bitcoincashpaymentrequest + + + + + + CFBundleDocumentTypes + + + CFBundleTypeRole + Editor + LSItemContentTypes + + org.bitcoincash.paymentrequest + + LSHandlerRank + Owner + + + + NSPrincipalClass + NSApplication + + NSHighResolutionCapable + True + + LSAppNapIsDisabled + True + + LSApplicationCategoryType + public.app-category.finance + + diff --git a/src/qt/CMakeLists.txt b/src/qt/CMakeLists.txt --- a/src/qt/CMakeLists.txt +++ b/src/qt/CMakeLists.txt @@ -289,5 +289,31 @@ include(InstallationHelper) install_target(bitcoin-qt) +if(${CMAKE_SYSTEM_NAME} MATCHES "Darwin") + set(BITCOINQT_BUNDLE_ICON "res/icons/bitcoin.icns") + get_filename_component(BITCOINQT_BUNDLE_ICON_NAME + "${BITCOINQT_BUNDLE_ICON}" + NAME + ) + + add_executable(BitcoinABC-Qt MACOSX_BUNDLE + bitcoin.cpp + "${BITCOINQT_BUNDLE_ICON}" + ) + target_link_libraries(BitcoinABC-Qt bitcoin-qt-base) + + set_target_properties(BitcoinABC-Qt PROPERTIES + MACOSX_BUNDLE_INFO_PLIST "${CMAKE_SOURCE_DIR}/share/qt/Info.plist.cmake.in" + MACOSX_BUNDLE_BUNDLE_NAME "BitcoinABC-Qt" + MACOSX_BUNDLE_BUNDLE_VERSION "${bitcoin-abc_VERSION}" + MACOSX_BUNDLE_GUI_IDENTIFIER "org.bitcoinabc.BitcoinABC-Qt" + MACOSX_BUNDLE_ICON_FILE "${BITCOINQT_BUNDLE_ICON_NAME}" + MACOSX_BUNDLE_INFO_STRING "${bitcoin-abc_VERSION}, Copyright © 2009-${COPYRIGHT_YEAR} ${COPYRIGHT_HOLDERS_FINAL}" + MACOSX_BUNDLE_LONG_VERSION_STRING "${bitcoin-abc_VERSION}" + MACOSX_BUNDLE_SHORT_VERSION_STRING "${bitcoin-abc_VERSION}" + RESOURCE "${BITCOINQT_BUNDLE_ICON}" + ) +endif() + # Test tests add_subdirectory(test)