From 1582b8529bd8154f26f45d457eaf12fee1b2fcc2 Mon Sep 17 00:00:00 2001 From: Le Tan Date: Fri, 31 May 2024 13:54:24 +0800 Subject: [PATCH] try fix mac signature issue --- src/CPackMacDeployQt.cmake.in | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/CPackMacDeployQt.cmake.in b/src/CPackMacDeployQt.cmake.in index 890a1b54fb..7b63c1c91e 100644 --- a/src/CPackMacDeployQt.cmake.in +++ b/src/CPackMacDeployQt.cmake.in @@ -1,6 +1,9 @@ execute_process(COMMAND "codesign" --remove-signature ${CMAKE_CURRENT_BINARY_DIR}/VNote.app WORKING_DIRECTORY ${CPACK_PACKAGE_DIRECTORY} ) +execute_process(COMMAND "codesign" --force --deep -s - ${CMAKE_CURRENT_BINARY_DIR}/VNote.app + WORKING_DIRECTORY ${CPACK_PACKAGE_DIRECTORY} +) execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" ${CMAKE_CURRENT_BINARY_DIR}/VNote.app -dmg -always-overwrite -verbose=1 WORKING_DIRECTORY ${CPACK_PACKAGE_DIRECTORY}