From e3bce37c46e143e15a3b2439f6f8551f7b9dd40e Mon Sep 17 00:00:00 2001 From: Le Tan Date: Fri, 19 Jul 2024 10:23:56 +0800 Subject: [PATCH] codesign --remove-signature will cause broken binary --- .github/workflows/ci-macos.yml | 2 +- src/CPackMacDeployQt.cmake.in | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci-macos.yml b/.github/workflows/ci-macos.yml index ceb9fad06f..7917e9cb44 100644 --- a/.github/workflows/ci-macos.yml +++ b/.github/workflows/ci-macos.yml @@ -49,7 +49,7 @@ jobs: - name: Install Dependencies run: | - brew install tree libiodbc libpq + brew install tree libiodbc libpq optool - name: Fix SQL run: | diff --git a/src/CPackMacDeployQt.cmake.in b/src/CPackMacDeployQt.cmake.in index 890a1b54fb..b9003ddf08 100644 --- a/src/CPackMacDeployQt.cmake.in +++ b/src/CPackMacDeployQt.cmake.in @@ -1,4 +1,4 @@ -execute_process(COMMAND "codesign" --remove-signature ${CMAKE_CURRENT_BINARY_DIR}/VNote.app +execute_process(COMMAND "optool" strip -t ${CMAKE_CURRENT_BINARY_DIR}/VNote.app WORKING_DIRECTORY ${CPACK_PACKAGE_DIRECTORY} ) execute_process(COMMAND "${MACDEPLOYQT_EXECUTABLE}" ${CMAKE_CURRENT_BINARY_DIR}/VNote.app -dmg