-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
56 lines (50 loc) · 1.16 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
before:
hooks:
- go mod tidy
- go mod download
builds:
- env:
- CGO_ENABLED=0
main: ./cmd
binary: gbox
ldflags:
- -X 'github.com/zezaeoh/gbox/internal/common.Version={{ .Version }}'
goos:
- linux
- darwin
goarch:
- amd64
- arm64
- arm
goarm:
- 6
- 7
archives:
- replacements:
darwin: Darwin
linux: Linux
name_template: "gbox_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
checksum:
name_template: "checksums.txt"
brews:
- name: gbox
tap:
owner: zezaeoh
name: homebrew-gbox
commit_author:
name: zezaeoh
email: zezaeoh@gmail.com
folder: Formula
homepage: https://github.com/zezaeoh/gbox
description: Gbox - use github as storage
license: "MIT"
install: |
bin.install "gbox"
# Install bash completion
output = Utils.popen_read("#{bin}/gbox completion bash")
(bash_completion/"gbox").write output
# Install zsh completion
output = Utils.popen_read("#{bin}/gbox completion zsh")
(zsh_completion/"_gbox").write output
test: |
system "gbox version"