Skip to content

Commit

Permalink
fix: Goreleaser fix (#1349)
Browse files Browse the repository at this point in the history
* update

* seperate archives

* fix

* binary format

---------

Co-authored-by: amitz <[email protected]>
Co-authored-by: Amit Zafran <[email protected]>
  • Loading branch information
3 people authored Apr 4, 2024
1 parent 833b7dd commit ce12818
Showing 1 changed file with 7 additions and 27 deletions.
34 changes: 7 additions & 27 deletions .goreleaser.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -70,9 +70,13 @@ builds:
- -X github.com/cosmos/cosmos-sdk/version.Version={{ .Version }}
- -X github.com/cosmos/cosmos-sdk/version.Commit={{ .Commit }}
- -X github.com/cosmos/cosmos-sdk/version.BuildTags=netgo,ledger
- -w -s
flags:
- -mod=readonly
- -trimpath
tags:
- netgo
- ledger

- id: lavap
binary: lavap
Expand Down Expand Up @@ -105,47 +109,23 @@ archives:
- id: lavavisor
builds:
- lavavisor
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format: binary
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: lavap
builds:
- lavap
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format: binary
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
- id: lavad
builds:
- lavad
format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .Binary }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format: binary
# use zip for windows archives
format_overrides:
- goos: windows
Expand Down

0 comments on commit ce12818

Please sign in to comment.