-
Notifications
You must be signed in to change notification settings - Fork 56
/
.goreleaser.yml
100 lines (88 loc) · 2.17 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
project_name: bookhunter
version: 2
before:
hooks:
- go mod tidy
builds:
- id: bookhunter
binary: bookhunter
gcflags:
- all=-l -B
ldflags:
- -s -w
- -X github.com/bookstairs/bookhunter/cmd.gitVersion={{ .Version }}
- -X github.com/bookstairs/bookhunter/cmd.gitCommit={{ .Commit }}
- -X github.com/bookstairs/bookhunter/cmd.buildDate={{ .Date }}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
- loong64
ignore:
- goos: windows
goarch: loong64
- goos: darwin
goarch: loong64
scoops:
- repository:
owner: bookstairs
name: scoop-bucket
branch: master
commit_author:
name: syhily
email: [email protected]
homepage: "https://github.com/bookstairs"
description: "Software to download chinese ebooks from Internet."
license: MIT
brews:
- name: bookhunter
repository:
owner: bookstairs
name: homebrew-tap
branch: master
commit_author:
name: syhily
email: [email protected]
directory: Formula
homepage: "https://github.com/bookstairs"
description: "Software to download chinese ebooks from Internet."
license: "MIT"
install: |
bin.install "bookhunter"
# Install shell completions
output = Utils.safe_popen_read("#{bin}/bookhunter", "completion", "bash")
(bash_completion/"bookhunter").write output
output = Utils.safe_popen_read("#{bin}/bookhunter", "completion", "zsh")
(zsh_completion/"_bookhunter").write output
output = Utils.safe_popen_read("#{bin}/bookhunter", "completion", "fish")
(fish_completion/"bookhunter.fish").write output
test: |
system "#{bin}/bookhunter version"
checksum:
name_template: 'checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
- '^web:'
- '^build:'
archives:
- id: bookhunter
builds:
- bookhunter
format: tar.gz
wrap_in_directory: "true"
format_overrides:
- goos: windows
format: zip
release:
draft: true
snapshot:
name_template: "{{ incminor .Version }}-next"