Skip to content

Commit

Permalink
releaser: Fix goreleaser config
Browse files Browse the repository at this point in the history
* fix: goreleaser nfpm artifact names
* fix: replacements
* fix: make both goreleaser yaml files more similar

Closes #5022
  • Loading branch information
caarlos0 authored and bep committed Aug 15, 2018
1 parent e5052f4 commit 2014834
Show file tree
Hide file tree
Showing 2 changed files with 18 additions and 4 deletions.
1 change: 1 addition & 0 deletions goreleaser-extended.yml
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,7 @@ nfpm:
maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
description: "A Fast and Flexible Static Site Generator built with love in GoLang."
license: "Apache 2.0"
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
Expand Down
21 changes: 17 additions & 4 deletions goreleaser.yml
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
project_name: hugo
build:
main: main.go
binary: hugo
Expand All @@ -21,21 +22,33 @@ build:
- goos: openbsd
goarch: arm
goarm: 6

fpm:
nfpm:
formats:
- deb
- deb
vendor: "gohugo.io"
homepage: "https://gohugo.io/"
maintainer: "Bjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>"
description: "A Fast and Flexible Static Site Generator built with love in GoLang."
license: "Apache 2.0"
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
arm: ARM
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
openbsd: OpenBSD
netbsd: NetBSD
freebsd: FreeBSD
dragonfly: DragonFlyBSD
archive:
format: tar.gz
format_overrides:
- goos: windows
format: zip
name_template: "{{.Binary}}_{{.Version}}_{{.Os}}-{{.Arch}}"
name_template: "{{.ProjectName}}_{{.Version}}_{{.Os}}-{{.Arch}}"
replacements:
amd64: 64bit
386: 32bit
Expand Down

0 comments on commit 2014834

Please sign in to comment.