From e0aaf631c460cd893c3ec682a237891f2d1baa50 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Fri, 28 Oct 2022 10:57:14 -0400 Subject: [PATCH] macOS: Set values for empty keys in Info.plist (#425) --- CMakeLists.txt | 2 +- src/CMakeLists.txt | 7 +++++++ src/resource/MacOSXBundleInfo.plist.in | 4 ---- 3 files changed, 8 insertions(+), 5 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index ce4d444e..4b2b7898 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -21,7 +21,7 @@ if (ENABLE_VCPKG) endif() endif() -project(Cemu VERSION 2.0) +project(Cemu VERSION 2.0.0) list(APPEND CMAKE_MODULE_PATH "${PROJECT_SOURCE_DIR}/cmake") diff --git a/src/CMakeLists.txt b/src/CMakeLists.txt index 1679623f..e06cfeaf 100644 --- a/src/CMakeLists.txt +++ b/src/CMakeLists.txt @@ -75,6 +75,13 @@ if (MACOS_BUNDLE) set(RESOURCE_FILES "${CMAKE_SOURCE_DIR}/src/resource/cemu.icns") target_sources(CemuBin PRIVATE "${RESOURCE_FILES}") + set(MACOSX_BUNDLE_ICON_FILE "cemu.icns") + set(MACOSX_BUNDLE_GUI_IDENTIFIER "info.cemu.Cemu") + set(MACOSX_BUNDLE_BUNDLE_NAME "Cemu") + set(MACOSX_BUNDLE_SHORT_VERSION_STRING ${CMAKE_PROJECT_VERSION}) + set(MACOSX_BUNDLE_BUNDLE_VERSION ${CMAKE_PROJECT_VERSION}) + set(MACOSX_BUNDLE_COPYRIGHT "Copyright © 2022 Cemu Project") + set(MACOSX_BUNDLE_CATEGORY "public.app-category.games") set_target_properties(CemuBin PROPERTIES diff --git a/src/resource/MacOSXBundleInfo.plist.in b/src/resource/MacOSXBundleInfo.plist.in index 73ff737b..c181b388 100644 --- a/src/resource/MacOSXBundleInfo.plist.in +++ b/src/resource/MacOSXBundleInfo.plist.in @@ -6,16 +6,12 @@ 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