-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
279 lines (248 loc) · 9.58 KB
/
.goreleaser.yaml
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
271
272
273
274
275
276
277
278
279
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 1
project_name: ortfodb
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- env:
- CGO_ENABLED=0
dir: cmd
binary: ortfodb_{{ .Os }}_{{ .Arch }}
no_unique_dist_dir: true
goos:
- linux
- windows
- darwin
archives:
- format: tar.gz
files:
- LICENSE*
- README*
- CHANGELOG*
- manpages/*
- completions/*
- src: dist/{{ .Binary }}{{ .ArtifactExt }}
dst: ortfodb
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
format_overrides:
- goos: windows
format: zip
# upx:
# - enabled: true
# compress: best
# github releases are handled by release-it
release:
disable: true
signs:
- artifacts: checksum
nfpms:
- package_name: ortfodb
vendor: ortfo
homepage: https://ortfo.org
maintainer: Ewen Le Bihan <[email protected]>
description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
license: MIT
formats: [apk, deb, rpm, termux.deb, archlinux]
overrides:
deb:
dependencies: [imagemagick, ffmpeg, webp]
recommends: [gifsicle, poppler-utils]
termux.deb:
dependencies: [imagemagick, ffmpeg, libwebp]
recommends: [gifsicle] #, poppler-utils] poppler-utils not available on termux
rpm:
dependencies: [ImageMagick, ffmpeg-free, libwebp-tools]
recommends: [gifsicle, poppler-utils]
apk:
dependencies: [imagemagick, ffmpeg, libwebp]
recommends: [gifsicle, poppler]
archlinux:
dependencies: [imagemagick, ffmpeg, libwebp]
recommends: [gifsicle, poppler]
release: '1'
contents:
- src: manpages
dst: /usr/share/man/man1
- src: LICENSE
dst: /usr/share/licenses/ortfodb/LICENSE
- src: completions/ortfodb.bash
dst: /usr/share/bash-completion/completions/ortfodb
- src: completions/ortfodb.zsh
dst: /usr/share/zsh/site-functions/_ortfodb
- src: completions/ortfodb.fish
dst: /usr/share/fish/vendor_completions.d/ortfodb.fish
- src: dist/{{ .Binary }}{{ .ArtifactExt }}
dst: /usr/bin/ortfodb
deb:
fields:
Bugs: https://github.com/ortfo/db/issues
archlinux:
packager: Ewen Le Bihan <[email protected]>
aurs:
- homepage: https://ortfo.org
description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
maintainers:
- Ewen Le Bihan <[email protected]>
license: MIT
rel: '{{ if index .Env "REL"}}{{ .Env.REL }}{{ else }}1{{ end }}'
private_key: "{{ .Env.AUR_KEY }}"
git_url: "ssh://[email protected]/ortfodb-bin.git"
url_template: https://github.com/ortfo/db/releases/download/{{.Tag}}/{{ .ArtifactName }}
depends: [imagemagick, ffmpeg, libwebp]
optdepends:
- "gifsicle: to convert videos to GIFs"
- "poppler: to process PDFs"
commit_author:
name: Ewen Le Bihan
email: [email protected]
package: |-
# bin
install -Dm755 "./ortfodb_linux_amd64" "${pkgdir}/usr/bin/ortfodb"
# license
install -Dm644 "./LICENSE" "${pkgdir}/usr/share/licenses/ortfodb/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/ortfodb.bash" "${pkgdir}/usr/share/bash-completion/completions/ortfodb"
install -Dm644 "./completions/ortfodb.zsh" "${pkgdir}/usr/share/zsh/site-functions/_ortfodb"
install -Dm644 "./completions/ortfodb.fish" "${pkgdir}/usr/share/fish/vendor_completions.d/ortfodb.fish"
# man pages
for manpage in manpages/*; do
install -Dm644 "$manpage" "${pkgdir}/usr/share/man/man1/$(basename manpage)"
done
# snapcrafts:
# - id: ortfodb
# title: ortfo/db
# icon: icon.png
# publish: true
# summary: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
# description: |
# ortfo/db is a simple, readable, easy and enjoyable way to manage portfolio databases using directories and text files. Learn more at ortfo.org/db
# grade: stable
# needs the `choco` CLI tool, which isn't installable on linux :/
# chocolateys:
# - name: ortfodb
# package_source_url: https://github.com/ortfo/db
# owners: Ewen Le Bihan
# title: ortfo/db
# authors: Ewen Le Bihan
# project_url: https://ortfo.org
# url_template: "https://github.com/ortfo/db/releases/download/download/{{ .Tag }}/{{ .ArtifactName }}"
# icon_url: https://ortfo.org/android-chrome-512x512.png
# license_url: https://github.com/ortfo/db/blob/main/LICENSE
# docs_url: https://ortfo.org/db
# bug_tracker_url: https://github.com/ortfo/db/issues
# summary: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
# description: |
# ortfo/db is a simple, readable, easy and enjoyable way to manage portfolio databases using directories and text files. Learn more at ortfo.org/db
# release_notes: https://ortfo.org/db/changelog#{{ .Version }}
# dependencies:
# - id: ffmpeg
# version: 7.0.0
# - id: imagemagick
# version: 7.1.1.2900
# - id: gifsicle # optional
# version: 1.95.0
# # poppler-utils: not found
# # poppler: idk if it's just the lib or if it provides pdftoppm
# api_key: "{{ .Env.CHOCO_API_KEY }}"
# source_repo: https://push.chocolatey.org
scoops:
- name: ortfodb
description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
homepage: https://ortfo.org
url_template: https://github.com/ortfo/db/releases/download/{{.Tag}}/{{ .ArtifactName }}
license: MIT
depends: [imagemagick, ffmpeg, libwebp] #optional: gifsicle #not in repos: poppler-utils
repository:
owner: ortfo
name: scoop-ortfodb
commit_author:
name: Ewen Le Bihan
email: [email protected]
shortcuts:
- [ortfodb.exe, ortfodb]
dockers:
- image_templates:
- uwun/ortfodb:latest
- uwun/ortfodb:{{ .Tag }}
build_flag_templates:
- "--label=org.opencontainers.image.created={{.Date}}"
- "--label=org.opencontainers.image.title={{.ProjectName}}"
- "--label=org.opencontainers.image.revision={{.FullCommit}}"
- "--label=org.opencontainers.image.version={{.Version}}"
brews:
- name: ortfodb
commit_author:
name: Ewen Le Bihan
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
caveats: Requires ffmpeg, ffprobe, gifsicle (for GIFs generation), pdftoppm (for PDF thumbnailing) and imagemagick to be on your PATH.
description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
license: MIT
url_template: https://github.com/ortfo/db/releases/download/{{.Tag}}/{{ .ArtifactName }}
dependencies:
- name: ffmpeg
- name: imagemagick
- name: webp
- name: gifsicle
type: optional
- name: poppler
type: optional
repository:
owner: ortfo
name: homebrew-ortfodb
homepage: https://ortfo.org
# TODO
nix:
- name: ortfodb
commit_author:
name: Ewen Le Bihan
email: [email protected]
homepage: https://ortfo.org
description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
license: mit
url_template: https://github.com/ortfo/db/releases/download/{{.Tag}}/{{ .ArtifactName }}
path: default.nix
dependencies:
- ffmpeg_5-full
- imagemagick
- libwebp
# - gifsicle optional
# - poppler_utils optional
repository:
owner: ortfo
name: nix-ortfodb
winget:
- publisher: ortfo
package_identifier: ortfo.db
publisher_url: https://ortfo.org
commit_author:
name: Ewen Le Bihan
email: [email protected]
short_description: A readable, easy and enjoyable way to manage portfolio databases using directories and text files.
license: MIT
release_notes_url: https://ortfo.org/db/changelog#{{ .Version }}
url_template: https://github.com/ortfo/db/releases/download/{{.Tag}}/{{ .ArtifactName }}
tags: [cli]
dependencies:
- package_identifier: Gyan.FFmpeg
minimum_version: "6.0"
- package_identifier: ImageMagick.ImageMagick
minimum_version: "7.1.1.3"
# gifsicle: not found
# poppler(-utils) or pdftoppm: not found
# (lib)webp or gif2webp: not found
repository:
owner: ortfo
name: winget-ortfodb