From b162d4cffc5b91eb6648acea8ce203b6ce2968c9 Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Tue, 31 Oct 2023 12:46:36 +0000 Subject: [PATCH 1/2] feat: build for armv6 Signed-off-by: Carlos Alexandro Becker --- goreleaser-full.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/goreleaser-full.yaml b/goreleaser-full.yaml index 7ec0580..335b6d6 100644 --- a/goreleaser-full.yaml +++ b/goreleaser-full.yaml @@ -47,12 +47,13 @@ builds: - "386" - arm goarm: + - "6" - "7" ignore: - goos: windows goarch: arm64 - goos: windows - goarm: "7" + goarch: arm archives: - format_overrides: @@ -65,6 +66,7 @@ archives: {{- if eq .Arch "amd64" }}x86_64 {{- else if eq .Arch "386" }}i386 {{- else }}{{ .Arch }}{{ end }} + {{- with .Arm}}v{{ . }}{{ end }} files: - README* - LICENSE* @@ -112,6 +114,7 @@ brews: email: "{{ .Var.brew_commit_author_email }}" homepage: "{{ .Var.homepage }}" description: "{{ .Var.description }}" + goarm: 7 install: |- bin.install "{{ with .Var.binary_name }}{{ . }}{{ else }}{{ .ProjectName }}{{ end }}" bash_completion.install "completions/{{ .ProjectName }}.bash" => "{{ .ProjectName }}" From d1d4cb253510392da5174f2c3c2a715fbb70208a Mon Sep 17 00:00:00 2001 From: Carlos Alexandro Becker Date: Thu, 2 Nov 2023 12:28:18 +0000 Subject: [PATCH 2/2] fix: deb name templates --- goreleaser-full.yaml | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/goreleaser-full.yaml b/goreleaser-full.yaml index 335b6d6..04805a1 100644 --- a/goreleaser-full.yaml +++ b/goreleaser-full.yaml @@ -78,7 +78,10 @@ nfpms: homepage: "{{ .Var.homepage }}" maintainer: "{{ .Var.maintainer }}" description: "{{ .Var.description }}" - file_name_template: "{{ .ConventionalFileName }}" + file_name_template: >- + {{- trimsuffix .ConventionalFileName .ConventionalExtension -}} + {{- if and (eq .Arm "6") (eq .ConventionalExtension ".deb") }}6{{ end -}} + {{- .ConventionalExtension -}} license: MIT formats: - apk