-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yml
More file actions
429 lines (366 loc) · 12.5 KB
/
.goreleaser.yml
File metadata and controls
429 lines (366 loc) · 12.5 KB
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
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
# .goreleaser.yml
# GoReleaser configuration for whereami
#
# This configuration builds the whereami application and packages it as RPM
# with all necessary Qt6 runtime dependencies.
version: 2
# Set environment variables for the build
env:
- CGO_ENABLED=1
- PATH={{ .Env.PATH }}:/usr/lib64/qt6/libexec
# Run go generate before building
before:
hooks:
- go mod tidy
- go generate ./...
# Build configuration
builds:
- id: whereami
main: .
binary: whereami
# Build flags
flags:
- -trimpath
# Linker flags to reduce binary size
ldflags:
- -s -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
- -X main.date={{.Date}}
- -X main.builtBy=goreleaser
# Target platforms
goos:
- linux
goarch:
- amd64
# Environment variables for each build
env:
- CGO_ENABLED=1
- CC=gcc
- CXX=g++
# Specific environment for different architectures
overrides:
- goos: linux
goarch: arm64
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
# Archive configuration
archives:
- id: whereami-archive
name_template: >-
{{ .ProjectName }}_
{{- .Version }}_
{{- .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# Use default format (tar.gz for linux, zip for windows)
# format_overrides is deprecated, relying on defaults
# Files to include in the archive
files:
- src: README.md
dst: README.md
- src: LICENSE
dst: LICENSE
- src: desktop/io.github.rubiojr.whereami.desktop
dst: share/applications/io.github.rubiojr.whereami.desktop
- src: ui/icons/io.github.rubiojr.whereami.svg
dst: share/icons/hicolor/scalable/apps/io.github.rubiojr.whereami.svg
- src: ui/icons/hicolor/16x16/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/16x16/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/22x22/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/22x22/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/24x24/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/24x24/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/32x32/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/32x32/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/48x48/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/48x48/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/64x64/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/64x64/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/128x128/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/128x128/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/256x256/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/256x256/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/512x512/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/512x512/apps/io.github.rubiojr.whereami.png
# Retina (@2) icons
- src: ui/icons/hicolor/16x16@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/16x16@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/24x24@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/24x24@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/32x32@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/32x32@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/48x48@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/48x48@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/64x64@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/64x64@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/128x128@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/128x128@2/apps/io.github.rubiojr.whereami.png
- src: ui/icons/hicolor/256x256@2/apps/io.github.rubiojr.whereami.png
dst: share/icons/hicolor/256x256@2/apps/io.github.rubiojr.whereami.png
# Checksum configuration
checksum:
name_template: "checksums.txt"
algorithm: sha256
# RPM package configuration
nfpms:
- id: whereami-rpm
package_name: whereami
file_name_template: >-
{{ .PackageName }}-
{{- .Version }}-1.fc
{{- if .Env.FEDORA_VERSION }}{{ .Env.FEDORA_VERSION }}{{ else }}42{{ end }}.
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
vendor: "WhereAmI Contributors"
homepage: "https://github.com/rubiojr/whereami"
maintainer: "Sergio Rubio <rubiojr@frameos.org>"
description: |
WhereAmI - View, manage and bookmark GPX waypoints with map display
WhereAmI is a desktop mapping application that provides offline map viewing,
waypoint management, GPX import/export, and location services integration.
license: "MIT"
formats:
- rpm
# RPM specific configuration
rpm:
summary: "Qt6/QML mapping application with waypoint management"
group: "Applications/Productivity"
compression: xz
# Signature configuration (optional)
# signature:
# key_file: "{{ .Env.GPG_KEY_FILE }}"
# Dependencies based on actual Fedora package names
# These are the essential Qt6 and system libraries
dependencies:
# Core Qt6 libraries (QML imports are bundled within these)
- qt6-qtbase >= 6.2.0
- qt6-qtdeclarative >= 6.2.0
- qt6-qtlocation >= 6.2.0
- qt6-qtpositioning >= 6.2.0
- qt6-qtsvg >= 6.2.0
- PackageKit-gtk3-module
# System libraries
- glibc >= 2.28
- libstdc++ >= 8.0
- libgcc >= 8.0
- zlib >= 1.2.11
- fontconfig
- freetype
- libpng
- harfbuzz
- libX11
- libxcb
- libxkbcommon
- mesa-libGL
- mesa-libEGL
- dbus-libs
- systemd-libs
- pcre2
- openssl-libs >= 3.0
- libproxy
- glib2
- libxml2
- bzip2-libs
- libzstd
- brotli
# ICU for internationalization
- icu >= 65
# Kerberos/GSSAPI (for network features)
- krb5-libs
# Recommended packages (not required but enhance functionality)
recommends:
- qt6-qttranslations
- qt6-qtimageformats
- geoclue2
# Suggested packages
suggests:
- gpsbabel
# File contents
contents:
# Desktop file
- src: desktop/io.github.rubiojr.whereami.desktop
dst: /usr/share/applications/io.github.rubiojr.whereami.desktop
type: file
file_info:
mode: 0644
# Icon files - SVG scalable
- src: ui/icons/io.github.rubiojr.whereami.svg
dst: /usr/share/icons/hicolor/scalable/apps/io.github.rubiojr.whereami.svg
type: file
file_info:
mode: 0644
# Icon files - PNG raster sizes
- src: ui/icons/hicolor/16x16/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/16x16/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/22x22/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/22x22/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/24x24/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/24x24/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/32x32/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/32x32/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/48x48/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/48x48/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/64x64/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/64x64/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/128x128/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/128x128/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/256x256/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/256x256/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/512x512/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/512x512/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
# Retina (@2) icons
- src: ui/icons/hicolor/16x16@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/16x16@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/24x24@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/24x24@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/32x32@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/32x32@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/48x48@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/48x48@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/64x64@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/64x64@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/128x128@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/128x128@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
- src: ui/icons/hicolor/256x256@2/apps/io.github.rubiojr.whereami.png
dst: /usr/share/icons/hicolor/256x256@2/apps/io.github.rubiojr.whereami.png
type: file
file_info:
mode: 0644
# Documentation
- src: README.md
dst: /usr/share/doc/whereami/README.md
type: file
file_info:
mode: 0644
- src: LICENSE
dst: /usr/share/doc/whereami/LICENSE
type: file
file_info:
mode: 0644
# Create required directories
- dst: /usr/share/whereami
type: dir
file_info:
mode: 0755
- dst: /usr/share/doc/whereami
type: dir
file_info:
mode: 0755
# Scripts to run during installation
scripts:
postinstall: scripts/postinstall.sh
postremove: scripts/postremove.sh
# Snapshot configuration for development builds
snapshot:
version_template: "{{ .Tag }}"
# Release configuration
release:
# GitHub release settings
github:
owner: rubiojr
name: whereami
# Release notes
footer: |
## Installation
### RPM-based distributions (Fedora, RHEL, openSUSE, etc.)
```bash
sudo rpm -i whereami-*.rpm
# or with dnf/yum
sudo dnf install ./whereami-*.rpm
```
### From source
```bash
tar xzf whereami-*.tar.gz
cd whereami-*/
sudo make install
```
## Requirements
- Qt6 runtime libraries (>= 6.2.0)
- Qt Location and Positioning modules
- System libraries (automatically resolved by package manager)
# Draft release by default
draft: true
# Prerelease mode
prerelease: auto
# Mode for release notes
mode: append
# Name template
name_template: "{{.ProjectName}}-v{{.Version}}"
# Changelog generation
changelog:
sort: asc
use: github
filters:
exclude:
- "^docs:"
- "^test:"
- "^ci:"
- "^build:"
- "^style:"
- "^refactor:"
- "^perf:"
- "^Merge"
groups:
- title: "Features"
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: "Bug Fixes"
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: "Performance Improvements"
regexp: '^.*?perf(\([[:word:]]+\))??!?:.+$'
order: 2
- title: "Other changes"
order: 999
# Announce releases (optional)
announce:
skip: true