From aabee3e284ec918e0fbce7d62218a7f7c539c3cf Mon Sep 17 00:00:00 2001 From: Helloyunho Date: Tue, 8 Jul 2025 13:33:49 +0900 Subject: [PATCH] =?UTF-8?q?=F0=9F=A9=B9=20fix:=20signing=20and=20missing?= =?UTF-8?q?=20framework?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packaging/macos/CMakeLists.txt | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/packaging/macos/CMakeLists.txt b/packaging/macos/CMakeLists.txt index 5a2229db..275e4441 100644 --- a/packaging/macos/CMakeLists.txt +++ b/packaging/macos/CMakeLists.txt @@ -47,6 +47,11 @@ if(ISLE_BUILD_CONFIG) MACOSX_BUNDLE_INFO_PLIST "${CMAKE_CURRENT_BINARY_DIR}/config/Info.plist" RESOURCE ${RESOURCE_FILES}) install(TARGETS isle-config DESTINATION ./) + install(CODE " + include(BundleUtilities) + fixup_bundle(${CMAKE_BINARY_DIR}/${MACOSX_CONFIG_BUNDLE_NAME}.app \"\" \"\") + " + COMPONENT Runtime) qt_generate_deploy_app_script( TARGET isle-config OUTPUT_SCRIPT deploy_script @@ -54,4 +59,14 @@ if(ISLE_BUILD_CONFIG) NO_TRANSLATIONS ) install(SCRIPT "${deploy_script}") + install(CODE " + execute_process(COMMAND /usr/bin/install_name_tool + -add_rpath \"@executable_path/../Frameworks\" + \"\$\{CMAKE_INSTALL_PREFIX\}/isle-config.app/Contents/MacOS/isle-config\") + ") + install(CODE " + execute_process(COMMAND /usr/bin/codesign + --force --deep --sign - --timestamp + \"\$\{CMAKE_INSTALL_PREFIX\}/isle-config.app/Contents/MacOS/isle-config\") + ") endif()