Skip to content

Commit

Permalink
Fix macos bundle display name in Finder
Browse files Browse the repository at this point in the history
IB-7694

Signed-off-by: Raul Metsma <[email protected]>
  • Loading branch information
metsma committed May 7, 2024
1 parent 1e9d99e commit fbd44e7
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions client/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,11 @@ set(SCHEMAS
../schema/recipients.fbs
../schema/header.fbs
)
if(APPLE)
set(PROJECT_NAME DigiDoc4)
endif()
add_executable(${PROJECT_NAME} WIN32 MACOSX_BUNDLE
${PROJECT_NAME}.rc
qdigidoc4.rc
${SOURCES}
${WIDGETS}
images/images.qrc
Expand Down Expand Up @@ -182,9 +185,9 @@ if( APPLE )
$<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/PlugIns/*/*
$<TARGET_BUNDLE_CONTENT_DIR:${PROJECT_NAME}>/Library/QuickLook/DigiDocQL.qlgenerator
COMMAND if echo \"$$SIGNCERT\" | grep -q "Developer ID" \; then
codesign -f -s \"$$SIGNCERT\" $<TARGET_BUNDLE_DIR:${PROJECT_NAME}> --entitlements ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.eToken.entitlements\;
codesign -f -s \"$$SIGNCERT\" $<TARGET_BUNDLE_DIR:${PROJECT_NAME}> --entitlements ${CMAKE_SOURCE_DIR}/qdigidoc4.eToken.entitlements\;
else
codesign -f -s \"$$SIGNCERT\" $<TARGET_BUNDLE_DIR:${PROJECT_NAME}> --entitlements ${CMAKE_SOURCE_DIR}/${PROJECT_NAME}.entitlements\;
codesign -f -s \"$$SIGNCERT\" $<TARGET_BUNDLE_DIR:${PROJECT_NAME}> --entitlements ${CMAKE_SOURCE_DIR}/qdigidoc4.entitlements\;
fi
)

Expand Down

0 comments on commit fbd44e7

Please sign in to comment.