fix: mac os CI build by correctly setting INSTALL_RPATH for the gui as a property of its target

This commit is contained in:
sithlord48 2025-01-03 19:28:27 -05:00 committed by Chris Rizzitello
parent 6bfde029fe
commit 9c3e08001e
2 changed files with 1 additions and 1 deletions

View file

@ -10,7 +10,6 @@ find_program(MACDEPLOYQT_BIN macdeployqt6)
install(CODE "execute_process(COMMAND ${MACDEPLOYQT_BIN} \"\${CMAKE_INSTALL_PREFIX}/Deskflow.app\")") install(CODE "execute_process(COMMAND ${MACDEPLOYQT_BIN} \"\${CMAKE_INSTALL_PREFIX}/Deskflow.app\")")
set(OS_STRING "macos-${CMAKE_SYSTEM_PROCESSOR}") set(OS_STRING "macos-${CMAKE_SYSTEM_PROCESSOR}")
set(CMAKE_INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks")
set(CPACK_PACKAGE_ICON "${MY_DIR}/dmg-volume.icns") set(CPACK_PACKAGE_ICON "${MY_DIR}/dmg-volume.icns")
set(CPACK_DMG_BACKGROUND_IMAGE "${MY_DIR}/dmg-background.tiff") set(CPACK_DMG_BACKGROUND_IMAGE "${MY_DIR}/dmg-background.tiff")
set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${MY_DIR}/generate_ds_store.applescript") set(CPACK_DMG_DS_STORE_SETUP_SCRIPT "${MY_DIR}/generate_ds_store.applescript")

View file

@ -89,6 +89,7 @@ if(WIN32)
) )
elseif(APPLE) elseif(APPLE)
set_target_properties(${target} PROPERTIES set_target_properties(${target} PROPERTIES
INSTALL_RPATH "@loader_path/../Libraries;@loader_path/../Frameworks"
MACOSX_BUNDLE_BUNDLE_NAME "Deskflow" MACOSX_BUNDLE_BUNDLE_NAME "Deskflow"
MACOSX_BUNDLE_DISPLAY_NAME "Deskflow" MACOSX_BUNDLE_DISPLAY_NAME "Deskflow"
MACOSX_BUNDLE_GUI_IDENTIFIER "org.deskflow.deskflow" MACOSX_BUNDLE_GUI_IDENTIFIER "org.deskflow.deskflow"