From 16acdb630b3e231a9319edd84bc45a72e064b086 Mon Sep 17 00:00:00 2001 From: OatmealDome Date: Thu, 1 Aug 2024 12:02:43 -0400 Subject: [PATCH] MacUpdater: Post-process the bundle --- Source/Core/MacUpdater/CMakeLists.txt | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Core/MacUpdater/CMakeLists.txt b/Source/Core/MacUpdater/CMakeLists.txt index b27b466df9..d72dd46cd2 100644 --- a/Source/Core/MacUpdater/CMakeLists.txt +++ b/Source/Core/MacUpdater/CMakeLists.txt @@ -53,6 +53,18 @@ foreach(sb ${STORYBOARDS}) COMMENT "Compiling Storyboard ${sb}...") endforeach() +if(NOT SKIP_POSTPROCESS_BUNDLE) + # Update library references to make the bundle portable + include(DolphinPostprocessBundle) + dolphin_postprocess_bundle(MacUpdater) + + # Fix rpath + add_custom_command(TARGET MacUpdater + POST_BUILD COMMAND + ${CMAKE_INSTALL_NAME_TOOL} -add_rpath "@executable_path/../Frameworks/" + $) +endif() + if(MACOS_CODE_SIGNING) add_custom_command(TARGET MacUpdater POST_BUILD