From b8302ebdd1840c5e6a3cb18e44ff7458eb79461c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20T=C5=AFma?= Date: Fri, 11 Jul 2025 19:33:22 +0200 Subject: [PATCH] Try to codesign the Mac build --- .github/workflows/osx.yml | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/.github/workflows/osx.yml b/.github/workflows/osx.yml index f33036d8..0fe58824 100644 --- a/.github/workflows/osx.yml +++ b/.github/workflows/osx.yml @@ -36,9 +36,21 @@ jobs: repository: tumic0/QtPBFImagePlugin path: GPXSee.app/Contents/Plugins/imageformats merge-multiple: true - run-id: ${{steps.runid.outputs.runid}} + run-id: ${{ steps.runid.outputs.runid }} + - name: Install codesigning certificate + env: CODESIGN_MAC: ${{ secrets.CODESIGN_MAC }} + run: | + CERTIFICATE_PATH=$RUNNER_TEMP/build_certificate.p12 + KEYCHAIN_PATH=$RUNNER_TEMP/app-signing.keychain-db + echo -n "$CODESIGN_MAC" | base64 --decode -o $CERTIFICATE_PATH + security create-keychain -p password $KEYCHAIN_PATH + security set-keychain-settings -lut 21600 $KEYCHAIN_PATH + security unlock-keychain -p password $KEYCHAIN_PATH + security import $CERTIFICATE_PATH -A -t cert -f pkcs12 -k $KEYCHAIN_PATH + security set-key-partition-list -S apple-tool:,apple: -k password $KEYCHAIN_PATH + security list-keychain -d user -s $KEYCHAIN_PATH - name: Create DMG - run: macdeployqt GPXSee.app -dmg -appstore-compliant + run: macdeployqt GPXSee.app -dmg -appstore-compliant -codesign=GPXSee - name: Upload artifacts uses: actions/upload-artifact@v4 with: