update config to build with latest goreleaser
# Release automation
#
# Build customization
-build:
+project_name: gopass
+builds:
+ - id: gopass
binary: gopass
flags: |
-tags netgo -gcflags="-trimpath=$GOPATH" -asmflags="-trimpath=$GOPATH"
@@ -21,7 +23,8 @@ build:
goarm:
- 6
- 7
-archive:
+archives:
+ - id: gopass
name_template: "{{.Binary}}-{{.Version}}-{{.Os}}-{{.Arch}}"
format: tar.gz
format_overrides:
@@ -39,7 +42,8 @@ release:
owner: gopasspw
name: gopass
draft: false
-brew:
+brews:
+ - name: gopass
github:
owner: gopasspw
name: homebrew-gopass
@@ -58,8 +62,6 @@ brew:
https://github.com/gopasspw/gopass/README.md
homepage: "https://www.gopass.pw/"
description: "The slightly more awesome Standard Unix Password Manager for Teams."
- build_dependencies:
- - go
dependencies:
- git
- gnupg
@@ -79,7 +81,8 @@ brew:
zsh_completion.install "zsh_completion.zsh"
test: |
assert_match version.to_s, shell_output("#{bin}/gopass version")
-fpm:
+nfpms:
+ - id: gopass
vendor: Gopass Authors
homepage: "https://www.gopass.pw"
maintainer: "Gopass Authors <gopass@gopass.pw>"
@@ -87,22 +90,14 @@ fpm:
formats:
- deb
- rpm
- - pacman
dependencies:
- git
- gnupg2
recommends:
- rng-tools
source:
- name_template: "{{.Binary}}-{{.Version}}"
- excludes:
- - "*/gopass-*"
- - "*/.git/*"
- - "*/.git"
- - "*/releases/*"
- - "*/dist/*"
+ enabled: true
+ name_template: "{{.ProjectName}}-{{.Version}}"
+
checksum:
- name_template: "{{.Binary}}_{{.Version}}_SHA256SUMS"
-cleanup:
- hooks:
- - make clean
+ name_template: "{{.ProjectName}}_{{.Version}}_SHA256SUMS"
