-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
132 lines (122 loc) · 3.54 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
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
---
before:
hooks:
- ./scripts/completions.sh
- ./scripts/manpages.sh
builds:
-
id: default
env:
- CGO_ENABLED=0
main: ./main.go
binary: derocli
ldflags: -s -w -X github.com/stratumfarm/derocli/internal/version.Version={{ .Version }} -X github.com/stratumfarm/derocli/internal/version.Commit={{ .Commit }} -X github.com/stratumfarm/derocli/internal/version.Date={{ .Date }} -X github.com/stratumfarm/derocli/internal/version.BuiltBy=goreleaser
flags:
- -trimpath
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
- "386"
- arm
goarm:
- "7"
ignore:
- goos: windows
goarch: arm64
- goos: windows
goarm: "7"
hooks:
post: upx -9 "{{ .Path }}"
-
id: bsd
env:
- CGO_ENABLED=0
main: ./main.go
binary: derocli
ldflags: -s -w -X github.com/stratumfarm/derocli/internal/version.Version={{ .Version }} -X github.com/stratumfarm/derocli/internal/version.Commit={{ .Commit }} -X github.com/stratumfarm/derocli/internal/version.Date={{ .Date }} -X github.com/stratumfarm/derocli/internal/version.BuiltBy=goreleas
flags:
- -trimpath
goos:
- freebsd
goarch:
- amd64
- "386"
archives:
-
name_template: "derocli-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
builds:
- default
- bsd
format_overrides:
- goos: windows
format: zip
replacements:
darwin: macOS
files:
- LICENSE*
- README*
- CHANGELOG*
- manpages/
- completions
checksum:
name_template: checksums.txt
nfpms:
-
file_name_template: "derocli-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
vendor: stratumfarm
homepage: https://stratum.farm
maintainer: stratumfarm <pool@stratum.farm>
description: a cli tool to fetch information from a dero rpc node
license: MIT
formats:
- apk
- deb
- rpm
aurs:
-
name: derocli-bin
homepage: https://stratum.farm
description: a cli tool to fetch information from a dero rpc node
maintainers:
- stratumfarm <pool@stratum.farm>
license: MIT
private_key: '{{ .Env.AUR_KEY }}'
git_url: ssh://aur@aur.archlinux.org/derocli-bin.git
package: |-
# bin
install -Dm755 "./derocli" "${pkgdir}/usr/bin/derocli"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/derocli/LICENSE"
# completions
mkdir -p "${pkgdir}/usr/share/bash-completion/completions/"
mkdir -p "${pkgdir}/usr/share/zsh/site-functions/"
mkdir -p "${pkgdir}/usr/share/fish/vendor_completions.d/"
install -Dm644 "./completions/derocli.bash" "${pkgdir}/usr/share/bash-completion/completions/derocli"
install -Dm644 "./completions/derocli.zsh" "${pkgdir}/usr/share/zsh/site-functions/_derocli"
install -Dm644 "./completions/derocli.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/derocli.fish"
# man pages
install -Dm644 "./manpages/derocli.1.gz" "${pkgdir}/usr/share/man/man1/derocli.1.gz"
source:
enabled: true
snapshot:
name_template: "{{ incpatch .Version }}-devel"
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
groups:
- title: New Features
regexp: "^.*feat[(\\w)]*:+.*$"
order: 0
- title: 'Bug fixes'
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Others
order: 999