diff --git a/dist/mac/bundle.cmake b/dist/mac/bundle.cmake index 7ef44a736..4f72b53b6 100644 --- a/dist/mac/bundle.cmake +++ b/dist/mac/bundle.cmake @@ -1,2 +1,3 @@ +set(BU_CHMOD_BUNDLE_ITEMS ON) include(BundleUtilities) fixup_bundle("$ENV{DESTDIR}/${CMAKE_INSTALL_PREFIX}/qbittorrent.app" "" "") diff --git a/src/app/CMakeLists.txt b/src/app/CMakeLists.txt index 03cc0a48f..d13ab7dac 100644 --- a/src/app/CMakeLists.txt +++ b/src/app/CMakeLists.txt @@ -172,6 +172,6 @@ install(TARGETS ${QBT_TARGET_NAME} BUNDLE DESTINATION . COMPONENT runtime) -if (APPLE) +if (APPLE AND GUI) install(SCRIPT ${OSX_RES_SRC_DIR}/bundle.cmake) -endif (APPLE) +endif (APPLE AND GUI)