Skip to content

Commit

Permalink
Add BUILD_DEV_BUNDLE CMake option
Browse files Browse the repository at this point in the history
to avoid regranting permissions all the time
  • Loading branch information
ManuelSchneid3r committed Dec 6, 2024
1 parent 91df9e8 commit ee39fd6
Showing 1 changed file with 9 additions and 1 deletion.
10 changes: 9 additions & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,13 @@ add_executable(${TARGET_APP} MACOSX_BUNDLE "src/main.cpp")

if (APPLE)

# Avoid regranting permissions all the time
option(BUILD_DEV_BUNDLE "Build a separate plugins" OFF)
if (BUILD_DEV_BUNDLE)
set(DEV_BUNDLE_SUFFIX "Dev")
set(DEV_BUNDLE_ID_SUFFIX ".dev")
endif()

set(ICON_NAME "albert")
set(ICON_PATH "dist/macos/${ICON_NAME}.icns")
target_sources(${TARGET_APP} PRIVATE ${ICON_PATH})
Expand All @@ -455,11 +462,12 @@ if (APPLE)

set_target_properties(${TARGET_APP} PROPERTIES
BUNDLE True
OUTPUT_NAME "${PROJECT_DISPLAY_NAME}${DEV_BUNDLE_SUFFIX}"
MACOSX_BUNDLE TRUE
MACOSX_BUNDLE_BUNDLE_NAME "${PROJECT_DISPLAY_NAME}" # "${PROJECT_NAME}"
MACOSX_BUNDLE_BUNDLE_VERSION "${CMAKE_PROJECT_VERSION}"
MACOSX_BUNDLE_COPYRIGHT "Copyright (c) 2024 Manuel Schneider"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.albertlauncher.albert"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.albertlauncher.albert${DEV_BUNDLE_ID_SUFFIX}"
MACOSX_BUNDLE_ICON_FILE "${ICON_NAME}"
MACOSX_BUNDLE_INFO_STRING "Albert keyboard launcher"
MACOSX_BUNDLE_SHORT_VERSION_STRING "${CMAKE_PROJECT_VERSION}"
Expand Down

0 comments on commit ee39fd6

Please sign in to comment.