-
Notifications
You must be signed in to change notification settings - Fork 32
/
Copy path.goreleaser.yml
270 lines (250 loc) · 8.98 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
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
project_name: oatmeal
changelog:
use: github-native
builds:
- main: ./tools/goreleaser.go
id: default
goos:
- darwin
- linux
- windows
goarch:
- amd64
- arm64
hooks:
post: ./tools/goreleaser-dist.sh default {{ .Target }}
- main: ./tools/goreleaser.go
id: musl
goos:
- linux
goarch:
- amd64
- arm64
hooks:
post: ./tools/goreleaser-dist.sh musl {{ .Target }}
checksum:
name_template: "checksums.txt"
snapshot:
name_template: "{{ .Tag }}-next"
archives:
- builds:
- default
format_overrides:
- goos: windows
format: zip
<<: &archive_defaults
files:
- completions/*
- manpages/*
- LICENSE
- THIRDPARTY.html
- id: musl
builds:
- musl
name_template: >-
{{ .ProjectName }}_{{ .Version }}_{{ .Os }}-musl_
{{- if eq .Arch "amd64" }}amd64
{{- else }}{{ .Arch }}{{ end }}
<<: *archive_defaults
signs:
- artifacts: checksum
args:
[
"-u",
"2C3F6542F953A9E825E0FDFE8EF35FED51652BF5",
"--output",
"${signature}",
"--detach-sign",
"${artifact}"
]
brews:
- ids:
- default
repository:
owner: dustinblackman
name: homebrew-tap
folder: Formula
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
test: |
system "#{bin}/oatmeal --version"
extra_install: |-
bash_completion.install "completions/oatmeal.bash" => "oatmeal"
zsh_completion.install "completions/oatmeal.zsh" => "_oatmeal"
fish_completion.install "completions/oatmeal.fish"
man1.install "manpages/oatmeal.1.gz"
scoops:
- repository:
owner: dustinblackman
name: scoop-bucket
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
license: MIT
nfpms:
- builds:
- default
formats:
- deb
- rpm
rpm:
signature:
key_file: "{{ .Env.RPM_KEY }}"
<<: &nfpms_defaults
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
maintainer: Dustin Blackman
vendor: Dustin Blackman
contents:
- src: ./completions/oatmeal.bash
dst: /usr/share/bash-completion/completions/oatmeal
file_info:
mode: 0644
- src: ./completions/oatmeal.fish
dst: /usr/share/fish/completions/oatmeal.fish
file_info:
mode: 0644
- src: ./completions/oatmeal.zsh
dst: /usr/share/zsh/vendor-completions/_oatmeal
file_info:
mode: 0644
- src: ./manpages/oatmeal.1.gz
dst: /usr/share/man/man1/oatmeal.1.gz
file_info:
mode: 0644
- src: ./LICENSE
dst: /usr/share/doc/oatmeal/copyright/LICENSE
file_info:
mode: 0644
- src: ./THIRDPARTY.html
dst: /usr/share/doc/oatmeal/copyright/THIRDPARTY.html
file_info:
mode: 0644
- builds:
- musl
id: musl
formats:
- apk
<<: *nfpms_defaults
aurs:
- ids:
- default
name: oatmeal-bin
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
maintainers:
- "Dustin Blackman"
contributors:
- "Dustin Blackman"
license: "MIT"
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://aur@aur.archlinux.org/oatmeal-bin.git"
package: |-
# bin
install -Dm755 "./oatmeal" "${pkgdir}/usr/bin/oatmeal"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/oatmeal/LICENSE"
install -Dm644 "./THIRDPARTY.html" "${pkgdir}/usr/share/licenses/oatmeal/THIRDPARTY.html"
# 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/oatmeal.bash" "${pkgdir}/usr/share/bash-completion/completions/oatmeal"
install -Dm644 "./completions/oatmeal.zsh" "${pkgdir}/usr/share/zsh/site-functions/_oatmeal"
install -Dm644 "./completions/oatmeal.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/oatmeal.fish"
# man pages
install -Dm644 "./manpages/oatmeal.1.gz" "${pkgdir}/usr/share/man/man1/oatmeal.1.gz"
nix:
- name: oatmeal
ids:
- default
repository:
owner: dustinblackman
name: nur-packages
skip_upload: true
homepage: https://github.com/dustinblackman/oatmeal
description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
path: pkgs/oatmeal.nix
license: mit
extra_install: |-
patchelf --set-interpreter $(cat $NIX_CC/nix-support/dynamic-linker) $out/bin/oatmeal
mkdir -p $out/share/doc/oatmeal/copyright
cp LICENSE $out/share/doc/oatmeal/copyright/
cp THIRDPARTY.html $out/share/doc/oatmeal/copyright/
installManPage ./manpages/oatmeal.1.gz
installShellCompletion ./completions/*
winget:
- name: oatmeal
publisher: dustinblackman
license: MIT
homepage: https://github.com/dustinblackman/oatmeal
license_url: https://github.com/dustinblackman/oatmeal/blob/main/LICENSE
copyright_url: https://github.com/dustinblackman/oatmeal/blob/main/LICENSE
release_notes_url: https://github.com/dustinblackman/oatmeal/blob/main/CHANGELOG.md
short_description: Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!
dependencies:
- package_identifier: Microsoft.VCRedist.2015+.x64
repository:
owner: dustinblackman
name: winget-pkgs
branch: "dustinblackman-{{.Version}}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
dockers:
- image_templates:
- "ghcr.io/dustinblackman/oatmeal:v{{ .Version }}-amd64"
- "ghcr.io/dustinblackman/oatmeal:latest-amd64"
ids:
- musl
goarch: arm64
dockerfile: Dockerfile
use: buildx
extra_files:
- LICENSE
- THIRDPARTY.html
build_flag_templates:
- "--platform=linux/amd64"
- "--builder=desktop-linux"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/dustinblackman/oatmeal/main/README.md"
- "--label=io.artifacthub.package.license=MIT"
- "--label=org.opencontainers.image.description=Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
- image_templates:
- "ghcr.io/dustinblackman/oatmeal:v{{ .Version }}-arm64"
- "ghcr.io/dustinblackman/oatmeal:latest-arm64"
ids:
- musl
goarch: arm64
dockerfile: Dockerfile
use: buildx
extra_files:
- LICENSE
- THIRDPARTY.html
build_flag_templates:
- "--platform=linux/arm64"
- "--builder=desktop-linux"
- "--label=io.artifacthub.package.readme-url=https://raw.githubusercontent.com/dustinblackman/oatmeal/main/README.md"
- "--label=io.artifacthub.package.license=MIT"
- "--label=org.opencontainers.image.description=Terminal UI to chat with large language models (LLM) using backends such as Ollama, and direct integrations with your favourite editor like Neovim!"
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.name={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
- "--label=org.opencontainers.image.source={{.GitURL}}"
docker_manifests:
- name_template: "ghcr.io/dustinblackman/oatmeal:v{{ .Version }}"
image_templates:
- "ghcr.io/dustinblackman/oatmeal:v{{ .Version }}-amd64"
- "ghcr.io/dustinblackman/oatmeal:v{{ .Version }}-arm64"
- name_template: "ghcr.io/dustinblackman/oatmeal:latest"
image_templates:
- "ghcr.io/dustinblackman/oatmeal:latest-amd64"
- "ghcr.io/dustinblackman/oatmeal:latest-arm64"