releaser: Fix goreleaser config
authorCarlos Alexandro Becker <caarlos0@users.noreply.github.com>
Wed, 15 Aug 2018 07:31:56 +0000 (04:31 -0300)
committerBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Wed, 15 Aug 2018 07:31:56 +0000 (09:31 +0200)
* fix: goreleaser nfpm artifact names
* fix: replacements
* fix: make both goreleaser yaml files more similar

Closes #5022

goreleaser-extended.yml
goreleaser.yml

index 2fc69a68f8d2d19874c8f1860ea6b8dfedf00a7d..31b52d7bae79128b87579a090b99820e0b7e6a6a 100644 (file)
@@ -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
index 6c70e469d4994d769259509b7ff878d2f5c1d5fd..0f38764ac6a00b98a9d1abdc5a699d831f4ede78 100644 (file)
@@ -1,3 +1,4 @@
+project_name: hugo
 build:
   main: main.go
   binary: hugo
@@ -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