This repository has been archived by the owner on Jun 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 13
/
Copy path.goreleaser.yml
164 lines (155 loc) · 4.61 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
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
---
before:
hooks:
- ./scripts/completions.sh
- ./scripts/manpages.sh
- ./scripts/hiveos.sh {{ .Version }}
builds:
-
id: default
env:
- CGO_ENABLED=0
main: ./main.go
binary: dero-stratum-miner
ldflags: -s -w -X github.com/whalesburg/dero-stratum-miner/internal/version.Version={{ .Version }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Commit={{ .Commit }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Date={{ .Date }} -X github.com/whalesburg/dero-stratum-miner/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"
-
id: bsd
env:
- CGO_ENABLED=0
main: ./main.go
binary: dero-stratum-miner
ldflags: -s -w -X github.com/whalesburg/dero-stratum-miner/internal/version.Version={{ .Version }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Commit={{ .Commit }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Date={{ .Date }} -X github.com/whalesburg/dero-stratum-miner/internal/version.BuiltBy=goreleas
flags:
- -trimpath
goos:
- freebsd
goarch:
- amd64
- "386"
-
id: hiveos
env:
- CGO_ENABLED=0
main: ./main.go
binary: dero-stratum-miner
ldflags: -s -w -X github.com/whalesburg/dero-stratum-miner/internal/version.Version={{ .Version }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Commit={{ .Commit }} -X github.com/whalesburg/dero-stratum-miner/internal/version.Date={{ .Date }} -X github.com/whalesburg/dero-stratum-miner/internal/version.BuiltBy=goreleaser
flags:
- -trimpath
goos:
- linux
goarch:
- amd64
archives:
# default
-
name_template: "dero-stratum-miner-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
# hiveos
-
id: hiveos
name_template: "dero-stratum-miner-{{ .Version }}.hiveOS"
builds:
- hiveos
format: tar.gz
wrap_in_directory: dero-stratum-miner
files:
- LICENSE*
- README*
- CHANGELOG*
- src: 'hiveos/*'
strip_parent: true
checksum:
name_template: checksums.txt
nfpms:
-
builds:
- default
file_name_template: "dero-stratum-miner-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}-{{ .Mips }}{{ end }}"
vendor: whalesburg
homepage: https://whalesburg.com
maintainer: whalesburg <pool@stratum.farm>
description: Dero Stratum Miner
license: MIT
formats:
- apk
- deb
- rpm
- termux.deb
- archlinux
aurs:
-
ids:
- default
name: dero-stratum-miner-bin
homepage: whalesburg.com
description: Dero Stratum Miner
maintainers:
- jon4hz <me@jon4hz.io>
license: custom
private_key: '{{ .Env.AUR_KEY }}'
git_url: 'ssh://aur@aur.archlinux.org/dero-stratum-miner-bin.git'
package: |-
# bin
install -Dm755 "./dero-stratum-miner" "${pkgdir}/usr/bin/dero-stratum-miner"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/dero-stratum-miner/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/dero-stratum-miner.bash" "${pkgdir}/usr/share/bash-completion/completions/dero-stratum-miner"
install -Dm644 "./completions/dero-stratum-miner.zsh" "${pkgdir}/usr/share/zsh/site-functions/_dero-stratum-miner"
install -Dm644 "./completions/dero-stratum-miner.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/dero-stratum-miner.fish"
# man pages
install -Dm644 "./manpages/dero-stratum-miner.1.gz" "${pkgdir}/usr/share/man/man1/dero-stratum-miner.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: Fixes
regexp: "^.*fix[(\\w)]*:+.*$"
order: 10
- title: Others
order: 999