Skip to content

Commit

Permalink
update goreleaser gon config for multiple darwin builds (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
heyweswu authored Jan 11, 2023
1 parent 7120be0 commit b1d3ad1
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 21 deletions.
29 changes: 20 additions & 9 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,25 +8,36 @@ before:
# - go generate ./...
builds:
- binary: aws-resource-counter
id: crc-others
id: arc-others
goos:
- linux
- binary: aws-resource-counter
id: crc-macos
id: arc-macos
goos:
- darwin
goarch:
- amd64
- arm64
hooks:
post: gon gon.hcl
post:
- |
sh -c '
cat > /tmp/arc-{{ .Arch }}-gon.hcl <<EOF
source = ["./dist/arc-macos_{{ .Target }}/{{ .Name }}"]
bundle_id = "com.expel.aws-resource-counter"
sign {
application_identity = "71c685df24be2279027ca972134afd5c715ed841"
}
EOF
'
- "gon /tmp/arc-{{ .Arch }}-gon.hcl"
archives:
- replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
checksum:
name_template: 'checksums.txt'
snapshot:
Expand Down
12 changes: 0 additions & 12 deletions gon.hcl

This file was deleted.

0 comments on commit b1d3ad1

Please sign in to comment.