From 0509cea33057bb9252e33456d4c3b2a4e15ab6bf Mon Sep 17 00:00:00 2001 From: ZeldaZach Date: Wed, 8 Jan 2025 20:43:58 -0500 Subject: [PATCH] Code Sign should work? maybe --- .github/workflows/desktop-build.yml | 8 ++++---- CMakeLists.txt | 1 + 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/desktop-build.yml b/.github/workflows/desktop-build.yml index 80a262853..62ed34ae3 100644 --- a/.github/workflows/desktop-build.yml +++ b/.github/workflows/desktop-build.yml @@ -280,10 +280,10 @@ jobs: security unlock-keychain -p "$MACOS_CI_KEYCHAIN_PWD" build.keychain security import certificate.p12 -k build.keychain -P "$MACOS_CERTIFICATE_PWD" -T /usr/bin/codesign security set-key-partition-list -S apple-tool:,apple:,codesign: -s -k "$MACOS_CI_KEYCHAIN_PWD" build.keychain - /usr/bin/codesign --force --deep --sign="$MACOS_CERTIFICATE_NAME" --entitlements="../.ci/macos.entitlements2" --options=runtime --verify "./cockatrice/cockatrice.app" - /usr/bin/codesign --force --deep --sign="$MACOS_CERTIFICATE_NAME" --entitlements="../.ci/macos.entitlements" --options=runtime --verify "./oracle/oracle.app" - /usr/bin/codesign --force --deep --sign="$MACOS_CERTIFICATE_NAME" --entitlements="../.ci/macos.entitlements" --options=runtime --verify "./servatrice/servatrice.app" - /usr/bin/codesign --force --deep --sign="$MACOS_CERTIFICATE_NAME" --entitlements="../.ci/macos.entitlements" --options=runtime --verify "./dbconverter/dbconverter.app" + /usr/bin/codesign --sign="$MACOS_CERTIFICATE_NAME" --entitlements=".ci/macos.entitlements" --options=runtime --force --deep --verify "./build/cockatrice/cockatrice.app" + /usr/bin/codesign --sign="$MACOS_CERTIFICATE_NAME" --entitlements=".ci/macos.entitlements" --options=runtime --force --deep --verify "./build/oracle/oracle.app" + /usr/bin/codesign --sign="$MACOS_CERTIFICATE_NAME" --entitlements=".ci/macos.entitlements" --options=runtime --force --deep --verify "./build/servatrice/servatrice.app" + /usr/bin/codesign --sign="$MACOS_CERTIFICATE_NAME" --entitlements=".ci/macos.entitlements" --options=runtime --force --deep --verify "./build/dbconverter/dbconverter.app" # - name: CodeSign app bundle # env: diff --git a/CMakeLists.txt b/CMakeLists.txt index 68281f235..e027d5f07 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -122,6 +122,7 @@ if(UNIX) set(CMAKE_XCODE_ATTRIBUTE_CXX "${CMAKE_BINARY_DIR}/launch-cxx") set(CMAKE_XCODE_ATTRIBUTE_LD "${CMAKE_BINARY_DIR}/launch-c") set(CMAKE_XCODE_ATTRIBUTE_LDPLUSPLUS "${CMAKE_BINARY_DIR}/launch-cxx") + set(CMAKE_XCODE_ATTRIBUTE_OTHER_CODE_SIGN_FLAGS "-o linker-signed") endif() else() # Linux / BSD