Skip to content

Commit

Permalink
migrate to notarytool for mac notarization, since apple has deprecate…
Browse files Browse the repository at this point in the history
…d the old method. (#90)
  • Loading branch information
bdon authored Oct 18, 2023
1 parent 87f572f commit e2b7c3b
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 25 deletions.
10 changes: 0 additions & 10 deletions .gon-amd64.hcl

This file was deleted.

10 changes: 0 additions & 10 deletions .gon-arm64.hcl

This file was deleted.

15 changes: 10 additions & 5 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,11 @@ builds:
- amd64
hooks:
post:
- gon -log-level debug .gon-amd64.hcl
- mv dist/pmtiles-darwin-amd64.zip dist/go-pmtiles-{{ .Version }}_Darwin_x86_64.zip
- cmd: 'codesign -s "Developer ID Application: Brandon Liu (WNSC27EEHU)" -v {{ .Path }} --options=runtime'
output: true
- cmd: zip "{{ .Path }}_signed.zip" {{ .Path }}
- cmd: xcrun notarytool submit "{{ .Path }}_signed.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id WNSC27EEHU --wait
- mv {{ .Path }}_signed.zip dist/go-pmtiles-{{ .Version }}_Darwin_x86_64.zip
- binary: pmtiles
id: pmtiles-macos-arm64
env:
Expand All @@ -41,9 +44,11 @@ builds:
- arm64
hooks:
post:
- gon -log-level debug .gon-arm64.hcl
- mv dist/pmtiles-darwin-arm64.zip dist/go-pmtiles-{{ .Version }}_Darwin_arm64.zip

- cmd: 'codesign -s "Developer ID Application: Brandon Liu (WNSC27EEHU)" -v {{ .Path }} --options=runtime'
output: true
- cmd: zip "{{ .Path }}_signed.zip" {{ .Path }}
- cmd: xcrun notarytool submit "{{ .Path }}_signed.zip" --apple-id {{ .Env.AC_USERNAME }} --password {{ .Env.AC_PASSWORD }} --team-id WNSC27EEHU --wait
- mv {{ .Path }}_signed.zip dist/go-pmtiles-{{ .Version }}_Darwin_arm64.zip
archives:
- id: default
builds:
Expand Down

0 comments on commit e2b7c3b

Please sign in to comment.