Skip to content

Commit

Permalink
update goreleaser migrating from outdated config
Browse files Browse the repository at this point in the history
  • Loading branch information
chmouel committed Oct 17, 2023
1 parent d56726c commit 0870403
Showing 1 changed file with 19 additions and 16 deletions.
35 changes: 19 additions & 16 deletions .goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,13 +20,16 @@ builds:
- -w
- -s
archives:
- name_template: "{{ .Binary }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
darwin: MacOS
linux: Linux
windows: Windows
386: i386
amd64: x86_64
- name_template: >-
{{ .Binary }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
format: zip
Expand Down Expand Up @@ -56,7 +59,15 @@ release:
prerelease: "false"

nfpms:
- file_name_template: "gosmee-{{.Version}}_{{.Os}}-{{.Arch}}"
- file_name_template: >-
tkn-pac-
{{- .Version}}_{{.Os}}-
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else if eq .Arch "darwin" }}MacOS
{{- else if eq .Arch "linux" }}Linux
{{- else if eq .Arch "windows" }}Windows
{{- else }}{{ .Arch }}{{ end }}
homepage: https://github.com/chmouel/gosmee
description: "gosmee - A webhook and https://smee.io forwarder"
maintainer: Chmouel Boudjnah <[email protected]>
Expand All @@ -66,14 +77,6 @@ nfpms:
- deb
- rpm
bindir: /usr/bin
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
contents:
- src: ./misc/gosmee-server.service
dst: /etc/systemd/system/gosmee-server.service
Expand Down

0 comments on commit 0870403

Please sign in to comment.