Skip to content

Commit

Permalink
Add arch to archive name
Browse files Browse the repository at this point in the history
  • Loading branch information
cugu committed Mar 15, 2021
1 parent 6d11072 commit 528235f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -40,3 +40,4 @@ bindata.generated.go

cmd/elementary-server/elementary-server
cmd/elementary/elementary
.venv
4 changes: 2 additions & 2 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,12 +43,12 @@ builds:

archives:
- id: elementary-archive
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
builds: [ elementary-darwin, elementary-linux, elementary-windows ]
replacements: { darwin: macOS, linux: Linux, windows: Windows }
format_overrides: [ { goos: windows, format: zip } ]
- id: elementary-server-archive
name_template: "{{ .ProjectName }}-server_{{ .Version }}_{{ .Os }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
name_template: "{{ .ProjectName }}-server_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}"
builds: [ elementary-server-darwin, elementary-server-linux, elementary-server-windows ]
replacements: { darwin: macOS, linux: Linux, windows: Windows }
format_overrides: [ { goos: windows, format: zip } ]
Expand Down

0 comments on commit 528235f

Please sign in to comment.