Skip to content

Commit

Permalink
notarize app in release
Browse files Browse the repository at this point in the history
  • Loading branch information
infeo committed Nov 27, 2024
1 parent fd8013f commit 598331d
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions .github/workflows/build-mac.yml
Original file line number Diff line number Diff line change
Expand Up @@ -162,15 +162,15 @@ jobs:
working-directory: target
# ditto must be used, see https://developer.apple.com/documentation/xcode/packaging-mac-software-for-distribution#Build-a-zip-archive
- name: Zip binary for notarization
if: inputs.notarize
if: (startsWith(github.ref, 'refs/tags/') && github.event.action == 'published') || inputs.notarize
run: ditto -c -k --keepParent ./target/cryptomator-cli.app ./${{ matrix.artifact-name}}
- name: Setup Xcode
if: inputs.notarize
if: (startsWith(github.ref, 'refs/tags/') && github.event.action == 'published') || inputs.notarize
run: sudo xcode-select -s ${{ matrix.xcode-path}}
shell: bash
#would like to uses cocoalibs/xcode-notarization-action@v1, but blocked due to https://github.com/cocoalibs/xcode-notarization-action/issues/1
- name: Prepare Notarization Credentials
if: inputs.notarize
if: (startsWith(github.ref, 'refs/tags/') && github.event.action == 'published') || inputs.notarize
run: |
# create temporary keychain
KEYCHAIN_PATH=$RUNNER_TEMP/notarization.keychain-db
Expand All @@ -182,13 +182,13 @@ jobs:
xcrun notarytool store-credentials "notary" --apple-id "${{ secrets.MACOS_NOTARIZATION_APPLE_ID }}" --password "${{ secrets.MACOS_NOTARIZATION_PW }}" --team-id "${{ secrets.MACOS_NOTARIZATION_TEAM_ID }}" --keychain "${KEYCHAIN_PATH}"
shell: bash
- name: Notarize
if: inputs.notarize
if: (startsWith(github.ref, 'refs/tags/') && github.event.action == 'published') || inputs.notarize
run: |
KEYCHAIN_PATH=$RUNNER_TEMP/notarization.keychain-db
xcrun notarytool submit ${{ matrix.artifact-name }} --keychain-profile "notary" --keychain "${KEYCHAIN_PATH}" --wait
shell: bash
- name: Staple
if: inputs.notarize
if: (startsWith(github.ref, 'refs/tags/') && github.event.action == 'published') || inputs.notarize
run: xcrun stapler staple ./target/cryptomator-cli.app
shell: bash
- name: Cleanup
Expand Down

0 comments on commit 598331d

Please sign in to comment.