-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
59 lines (49 loc) · 1.97 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
project_name: strm
before:
hooks:
- go mod download
- go generate ./...
builds:
- id: strm
binary: strm
main: ./cmd/strm
ldflags:
- -s -w -X strmprivacy/strm/pkg/common.Version={{.Version}} -X strmprivacy/strm/pkg/common.GitSha={{.Commit}} -X strmprivacy/strm/pkg/common.BuiltOn={{.Date}}
goos:
- linux
- windows
- darwin
archives:
- name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
files:
# Only include the binary to ensure auto update works correctly
- none*
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-dev"
brews:
- tap:
owner: strmprivacy
name: homebrew-cli
url_template: "https://github.com/strmprivacy/cli/releases/download/{{ .Tag }}/{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}.tar.gz"
homepage: "https://strmprivacy.io"
description: "Command Line Interface for https://strmprivacy.io"
install: |
bin.install "strm"
folder: Formula
test: |
system "#{bin}/{{ .ProjectName }} --version"
caveats: |
In order to set up auto completion, please follow the instructions below. When you've set up auto completion in the past, you can skip these instructions.
for bash users
add the following line to your .bash_profile or .bashrc:
source <({{ .ProjectName }} completion bash)
to load completions for each session, execute once:
- Linux users: {{ .ProjectName }} completion bash > /etc/bash_completion.d/{{ .ProjectName }}
- macOS users: {{ .ProjectName }} completion bash > /usr/local/etc/bash_completion.d/{{ .ProjectName }}
for zsh users
ensure that shell completion is enabled, then run (only needs to be done once):
{{ .ProjectName }} completion zsh > "${fpath[1]}/_{{ .ProjectName }}"
for fish users
{{ .ProjectName }} completion fish > ~/.config/fish/completions/{{ .ProjectName }}.fish # or $XDG_CONFIG_HOME instead of ~/.config