forked from gopasspw/gopass
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
104 lines (102 loc) · 2.52 KB
/
.goreleaser.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
# goreleaser.yml
# Release automation
#
# Build customization
build:
binary: gopass
flags: -tags netgo
env:
- CGO_ENABLED=0
goos:
- darwin
- freebsd
- linux
- netbsd
- openbsd
- windows
goarch:
- 386
- amd64
goarm:
- 6
- 7
archive:
name_template: "{{.Binary}}-{{.Version}}-{{.Os}}-{{.Arch}}"
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- CHANGELOG.md
- LICENSE
- README.md
- bash.completion
- fish.completion
- zsh.completion
release:
github:
owner: justwatchcom
name: gopass
draft: false
brew:
github:
owner: justwatchcom
name: homebrew-gopass
caveats: |
Gopass has been installed, have fun!
If upgrading from `pass`, everything should work as expected.
If installing from scratch, you need to either initialize a new repository now...
gopass init
...or clone one from a source:
gopass clone git@code.example.com:example/pass.git
In order to use the great autocompletion features (they're helpful with gopass),
please make sure you have autocompletion for homebrew enabled:
https://github.com/bobthecow/git-flow-completion/wiki/Install-Bash-git-completion
More information:
https://www.justwatch.com/gopass
https://github.com/justwatchcom/gopass/README.md
homepage: "https://www.justwatch.com/gopass/"
description: "The slightly more awesome Standard Unix Password Manager for Teams."
build_dependencies:
- go
dependencies:
- git
- gnupg
install: |
ENV["GOPATH"] = buildpath
(buildpath/"src/github.com/justwatchcom/gopass").install buildpath.children
cd "src/github.com/justwatchcom/gopass" do
ENV["PREFIX"] = prefix
system "make", "install"
end
system bin/"gopass completion bash > bash_completion.bash"
system bin/"gopass completion zsh > zsh_completion.zsh"
bash_completion.install "bash_completion.bash"
zsh_completion.install "zsh_completion.zsh"
test: |
assert_match version.to_s, shell_output("#{bin}/gopass version")
fpm:
vendor: JustWatch
homepage: "https://www.justwatch.com/gopass/"
maintainer: "Gopass Authors <gopass@justwatch.com>"
license: MIT
formats:
- deb
- rpm
- pacman
dependencies:
- git
- gnupg
source:
name_template: "{{.Binary}}-{{.Version}}"
excludes:
- "*/gopass-*"
- "*/.git/*"
- "*/.git"
- "*/releases/*"
- "*/dist/*"
checksum:
name_template: "{{.Binary}}_{{.Version}}_SHA256SUMS"
cleanup:
hooks:
- make clean