1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-07-15 19:34:24 +02:00

Try to codesign the Mac build

This commit is contained in:
2025-07-11 19:33:22 +02:00
parent 5d2b818781
commit b8302ebdd1

View File

@ -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: