diff --git a/.goreleaser.yml b/.goreleaser.yml index 31b84569395f..56e4b1c03284 100644 --- a/.goreleaser.yml +++ b/.goreleaser.yml @@ -1,5 +1,7 @@ version: 1 +project_name: mev-commit-geth + builds: - env: - CGO_ENABLED=0 @@ -17,7 +19,7 @@ builds: goarch: arm64 dir: ./external/geth main: ./cmd/geth - binary: mev-commit-geth + binary: "{{ .ProjectName }}" archives: - format: tar.gz @@ -30,15 +32,25 @@ archives: {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }} - {{ end }} + {{- end }} {{- if .Arm }}v{{ .Arm }}{{ end }} format_overrides: - goos: windows format: zip + files: + - src: ./external/geth/geth-poa/entrypoint.sh + dst: ./ + strip_parent: true + - src: ./external/geth/geth-poa/genesis.json + dst: ./ + strip_parent: true + - src: ./external/geth/geth-poa/util/deploy_create2.sh + dst: ./ + strip_parent: true checksum: name_template: >- - mev-commit-geth_ + {{ .ProjectName }}_ {{- if .IsSnapshot }}{{ .ShortCommit }} {{- else }}{{ .Version }} {{- end -}}