From 4bb6f512ede457fe1a50b74c1a52a41a8198c289 Mon Sep 17 00:00:00 2001 From: Raul Metsma Date: Mon, 13 May 2024 10:02:33 +0300 Subject: [PATCH] Revert "Fix macos bundle display name in Finder (#1250)" This reverts commit 19a022279a8a66aaa73477e6518fc691a28ff3ec. --- client/CMakeLists.txt | 9 +++------ client/mac/Info.plist.cmake | 4 +++- client/mac/Resources/en.lproj/InfoPlist.strings | 4 ++++ client/mac/Resources/et.lproj/InfoPlist.strings | 4 ++++ client/mac/Resources/ru.lproj/InfoPlist.strings | 4 ++++ 5 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 client/mac/Resources/en.lproj/InfoPlist.strings create mode 100644 client/mac/Resources/et.lproj/InfoPlist.strings create mode 100644 client/mac/Resources/ru.lproj/InfoPlist.strings diff --git a/client/CMakeLists.txt b/client/CMakeLists.txt index ec54a7997..8986587b6 100644 --- a/client/CMakeLists.txt +++ b/client/CMakeLists.txt @@ -22,11 +22,8 @@ set(SCHEMAS ../schema/recipients.fbs ../schema/header.fbs ) -if(APPLE) - set(PROJECT_NAME DigiDoc4) -endif() add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE - qdigidoc4.rc + ${PROJECT_NAME}.rc ${SOURCES} ${WIDGETS} images/images.qrc @@ -185,9 +182,9 @@ if( APPLE ) $/PlugIns/*/* $/Library/QuickLook/DigiDocQL.qlgenerator COMMAND if echo \"$$SIGNCERT\" | grep -q "Developer ID" \; then - codesign -f -s \"$$SIGNCERT\" $ --entitlements ${CMAKE_SOURCE_DIR}/qdigidoc4.eToken.entitlements\; + codesign -f -s \"$$SIGNCERT\" $ --entitlements ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.eToken.entitlements\; else - codesign -f -s \"$$SIGNCERT\" $ --entitlements ${CMAKE_SOURCE_DIR}/qdigidoc4.entitlements\; + codesign -f -s \"$$SIGNCERT\" $ --entitlements ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.entitlements\; fi ) diff --git a/client/mac/Info.plist.cmake b/client/mac/Info.plist.cmake index a24261f41..b1fa358fa 100644 --- a/client/mac/Info.plist.cmake +++ b/client/mac/Info.plist.cmake @@ -13,7 +13,7 @@ CFBundleInfoDictionaryVersion 6.0 CFBundleName - DigiDoc4 + ${MACOSX_BUNDLE_BUNDLE_NAME} CFBundlePackageType APPL CFBundleSupportedPlatforms @@ -32,6 +32,8 @@ NSAppleEventsUsageDescription DigiDoc4 can use AppleScript to talk with apps, for example to insert attachments to emails. + LSHasLocalizedDisplayName + LSApplicationCategoryType public.app-category.productivity LSMinimumSystemVersion diff --git a/client/mac/Resources/en.lproj/InfoPlist.strings b/client/mac/Resources/en.lproj/InfoPlist.strings new file mode 100644 index 000000000..3811f7553 --- /dev/null +++ b/client/mac/Resources/en.lproj/InfoPlist.strings @@ -0,0 +1,4 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "DigiDoc4 Client"; +CFBundleDisplayName = "DigiDoc4 Client"; diff --git a/client/mac/Resources/et.lproj/InfoPlist.strings b/client/mac/Resources/et.lproj/InfoPlist.strings new file mode 100644 index 000000000..9853a4ec5 --- /dev/null +++ b/client/mac/Resources/et.lproj/InfoPlist.strings @@ -0,0 +1,4 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "DigiDoc4 klient"; +CFBundleDisplayName = "DigiDoc4 klient"; diff --git a/client/mac/Resources/ru.lproj/InfoPlist.strings b/client/mac/Resources/ru.lproj/InfoPlist.strings new file mode 100644 index 000000000..c334afd63 --- /dev/null +++ b/client/mac/Resources/ru.lproj/InfoPlist.strings @@ -0,0 +1,4 @@ +/* Localized versions of Info.plist keys */ + +CFBundleName = "DigiDoc4 Клиент"; +CFBundleDisplayName = "DigiDoc4 Клиент";