diff --git a/cmake/modules/MacOSXBundleInfo.plist.in b/cmake/modules/MacOSXBundleInfo.plist.in deleted file mode 100644 index 4100a011..00000000 --- a/cmake/modules/MacOSXBundleInfo.plist.in +++ /dev/null @@ -1,46 +0,0 @@ - - - - - CFBundleDevelopmentRegion - English - CFBundleExecutable - flameshot - CFBundleGetInfoString - - CFBundleIconFile - flameshot - CFBundleIdentifier - @MACOSX_BUNDLE_IDENTIFIER@ - CFBundleInfoDictionaryVersion - 6.0 - CFBundleName - Flameshot - CFBundlePackageType - APPL - CFBundleShortVersionString - - CFBundleSignature - ???? - CFBundleVersion - @PROJECT_VERSION@ - CFBundleLongVersionString - @PROJECT_VERSION@ - CSResourcesFileMapped - - NSHumanReadableCopyright - - LSMinimumSystemVersion - 10.15 - NSPrincipalClass - NSApplication - NSHighResolutionCapable - True - LSUIElement - 1 - NSPhotoLibraryAddUsageDescription - Application requires access to save screenshots to your gallery - NSSupportsAutomaticGraphicsSwitching - - - diff --git a/packaging/macos/Info.plist.in b/packaging/macos/Info.plist.in new file mode 100644 index 00000000..c1f165f7 --- /dev/null +++ b/packaging/macos/Info.plist.in @@ -0,0 +1,32 @@ + + + + + CFBundleExecutable + ${MACOSX_BUNDLE_EXECUTABLE_NAME} + CFBundleIconFile + flameshot + CFBundleIdentifier + ${MACOSX_BUNDLE_GUI_IDENTIFIER} + CFBundleName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundleDisplayName + ${MACOSX_BUNDLE_BUNDLE_NAME} + CFBundleVersion + ${MACOSX_BUNDLE_BUNDLE_VERSION} + CFBundleShortVersionString + ${MACOSX_BUNDLE_SHORT_VERSION_STRING} + CFBundlePackageType + APPL + CFBundleSignature + ???? + CFBundleInfoDictionaryVersion + 6.0 + LSMinimumSystemVersion + ${CMAKE_OSX_DEPLOYMENT_TARGET} + NSHighResolutionCapable + + LSUIElement + + + \ No newline at end of file diff --git a/packaging/macos/flameshot.icns b/packaging/macos/flameshot.icns new file mode 100644 index 00000000..b8db080f Binary files /dev/null and b/packaging/macos/flameshot.icns differ diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 98ec9220..6d109772 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -238,6 +238,9 @@ if (APPLE) MACOSX_BUNDLE_IDENTIFIER "org.flameshot.Flameshot" MACOSX_BUNDLE_GUI_IDENTIFIER "org.flameshot.Flameshot" ) + set_property(TARGET flameshot PROPERTY + MACOSX_BUNDLE_INFO_PLIST ${CMAKE_SOURCE_DIR}/packaging/macos/Info.plist.in + ) target_link_libraries( flameshot qhotkey