Skip to content

Commit

Permalink
add build targets for notarization and gon configs [#23]
Browse files Browse the repository at this point in the history
  • Loading branch information
bdon committed Nov 14, 2022
1 parent 5cca060 commit 6dbf754
Show file tree
Hide file tree
Showing 3 changed files with 67 additions and 0 deletions.
20 changes: 20 additions & 0 deletions .gon-amd64.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
source = ["./dist/pmtiles-macos-amd64_darwin_amd64_v1/pmtiles"]
bundle_id = "com.protomaps.pmtiles"

apple_id {
username = "@env:AC_USERNAME"
password = "@env:AC_PASSWORD"
}

sign {
application_identity = "Developer ID Application: Brandon Liu (WNSC27EEHU)"
}

zip {
output_path = "./dist/pmtiles-darwin-amd64.zip"
}

dmg {
output_path = "./dist/pmtiles-darwin-amd64.dmg"
volume_name = "pmtiles"
}
20 changes: 20 additions & 0 deletions .gon-arm64.hcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
source = ["./dist/pmtiles-macos-arm64_darwin_arm64/pmtiles"]
bundle_id = "com.protomaps.pmtiles"

apple_id {
username = "@env:AC_USERNAME"
password = "@env:AC_PASSWORD"
}

sign {
application_identity = "Developer ID Application: Brandon Liu (WNSC27EEHU)"
}

zip {
output_path = "./dist/pmtiles-darwin-arm64.zip"
}

dmg {
output_path = "./dist/pmtiles-darwin-arm64.dmg"
volume_name = "pmtiles"
}
27 changes: 27 additions & 0 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,15 +3,42 @@ before:
- go mod tidy
builds:
- binary: pmtiles
id: go-pmtiles
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm64
- binary: pmtiles
id: pmtiles-macos-amd64
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- amd64
hooks:
post:
- gon .gon-amd64.hcl
- mv dist/pmtiles-darwin-amd64.dmg dist/go-pmtiles-{{ .Version }}_Darwin_x86_64.dmg
- mv dist/pmtiles-darwin-amd64.zip dist/go-pmtiles-{{ .Version }}_Darwin_x86_64.zip
- binary: pmtiles
id: pmtiles-macos-arm64
env:
- CGO_ENABLED=0
goos:
- darwin
goarch:
- arm64
hooks:
post:
- gon .gon-arm64.hcl
- mv dist/pmtiles-darwin-arm64.dmg dist/go-pmtiles-{{ .Version }}_Darwin_arm64.dmg
- mv dist/pmtiles-darwin-arm64.zip dist/go-pmtiles-{{ .Version }}_Darwin_arm64.zip

archives:
- replacements:
darwin: Darwin
Expand Down

0 comments on commit 6dbf754

Please sign in to comment.