From 200b8e3a245fdd0e15f94419969f34e987bdb749 Mon Sep 17 00:00:00 2001 From: Alex Ritter Date: Fri, 3 May 2024 14:48:17 +0200 Subject: [PATCH] Fix mac info --- OpenRGB.pro | 11 ++++++++--- mac/Info.plist.in | 28 ++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 3 deletions(-) create mode 100644 mac/Info.plist.in diff --git a/OpenRGB.pro b/OpenRGB.pro index af9d50f7..9255c591 100644 --- a/OpenRGB.pro +++ b/OpenRGB.pro @@ -665,8 +665,6 @@ unix:!macx:CONFIG(asan) { #-----------------------------------------------------------------------------------------------# QMAKE_MACOSX_DEPLOYMENT_TARGET = 10.15 -macx:ICON = qt/OpenRGB.icns - #-------------------------------------------------------------------------------------------# # Common MacOS definitions # #-------------------------------------------------------------------------------------------# @@ -703,7 +701,14 @@ macx { -lmbedx509 \ -lmbedcrypto \ -lmbedtls \ - -L$$MBEDTLS_PREFIX/lib \ + -L$$MBEDTLS_PREFIX/lib + + ICON = qt/OpenRGB.icns + + info_plist.input = mac/Info.plist.in + info_plist.output = $$OUT_PWD/Info.plist + QMAKE_SUBSTITUTES += info_plist + QMAKE_INFO_PLIST = $$OUT_PWD/Info.plist } #-------------------------------------------------------------------------------------------# diff --git a/mac/Info.plist.in b/mac/Info.plist.in new file mode 100644 index 00000000..1bc630b1 --- /dev/null +++ b/mac/Info.plist.in @@ -0,0 +1,28 @@ + + + + + CFBundleDisplayName + OpenRGB + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + ${ASSETCATALOG_COMPILER_APPICON_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleName + ${PRODUCT_NAME} + CFBundlePackageType + APPL + CFBundleShortVersionString + ${QMAKE_SHORT_VERSION} + CFBundleSignature + ${QMAKE_PKGINFO_TYPEINFO} + CFBundleVersion + ${QMAKE_FULL_VERSION} + NOTE + This file was generated by Qt/QMake. + NSHumanReadableCopyright + Distributed under GNU General Public License v2.0 + +