Skip to content

Commit

Permalink
Fix notarization for Mac M1 builds (#981)
Browse files Browse the repository at this point in the history
* Fix working directory for Mac M1 notarization

Signed-off-by: Geoff Hutchison <[email protected]>
  • Loading branch information
ghutchis authored Jun 28, 2022
1 parent bdeca97 commit e933836
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/build_m1.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,14 +157,15 @@ jobs:
run: |
# check if we have the password and the username
if [ -n "${NOTARIZE_PASSWORD}" ] && [ -n "${NOTARIZE_USERNAME}" ]; then
codesign -s "$CODESIGN_IDENTITY" --timestamp "build/avogadroapp/Avogadro2*.dmg"
npx notarize-cli --file "build/avogadroapp/Avogadro2*.dmg"
codesign -s "$CODESIGN_IDENTITY" --timestamp "Avogadro2*.dmg"
npx notarize-cli --file "Avogadro2*.dmg"
fi
env:
NOTARIZE_USERNAME: ${{ secrets.AC_USERNAME }}
NOTARIZE_PASSWORD: ${{ secrets.AC_PASSWORD }}
CODESIGN_IDENTITY: ${{ secrets.CODESIGN_ID }}
PRODUCT_BUNDLE_IDENTIFIER: cc.avogadro
working-directory: ${{ runner.workspace }}/build/avogadroapp

- name: Upload
if: matrix.config.artifact != 0
Expand Down

0 comments on commit e933836

Please sign in to comment.