Skip to content

Commit

Permalink
update gorelease with new syntax.
Browse files Browse the repository at this point in the history
  • Loading branch information
jonhadfield committed Aug 27, 2023
1 parent 459f4b1 commit 54edf1d
Showing 1 changed file with 11 additions and 4 deletions.
15 changes: 11 additions & 4 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ builds:
post: |
sh -c '
cat > /tmp/sn-cli-gon-amd64.hcl << EOF
source = ["./dist/sn-macos_darwin_amd64/sn"]
source = ["./dist/sn-macos_darwin_amd64_v1/sn"]
bundle_id = "uk.co.lessknown.sn-cli"
apple_id {
username = "[email protected]"
Expand Down Expand Up @@ -90,8 +90,15 @@ builds:
- "-s -w -X main.version={{ .Version }} -X main.sha={{ .ShortCommit }} -X main.buildDate={{ .Date }} -X main.tag={{ .Tag }}"

archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
replacements:
- name_template: >-
{{ .ProjectName }}_
{{- if eq .Os "linux" }}Linux_
{{- else if eq .Os "windows" }}Windows_
{{- else }}{{- tolower .Os }}_{{ end }}
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{ if .Arm }}v{{ .Arm }}{{ end }}
linux: Linux
windows: Windows
386: i386
Expand Down Expand Up @@ -129,4 +136,4 @@ changelog:
- ignore

checksum:
name_template: 'checksums.txt'
name_template: 'checksums.txt'

0 comments on commit 54edf1d

Please sign in to comment.