-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
59 lines (51 loc) · 1.31 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
# .goreleaser.yml
before:
hooks:
- go mod tidy
- go generate ./...
# Define builds for Linux and Windows
builds:
- binary: birdnet-pi2go
env:
- CGO_ENABLED=0
ldflags:
- -s -w
flags:
- -trimpath
goos:
- linux
- windows
goarch:
- amd64
- arm64
goarm:
- '7'
ignore:
- goos: windows
goarch: arm64
# Package the Linux builds into .deb
nfpms:
- id: default
package_name: birdnet-pi2go
vendor: "Tomi P. Hakala"
homepage: "https://github.com/tphakala/birdnet-pi2go"
maintainer: "Tomi P. Hakala <tphakala@users.noreply.github.com>"
description: "BirdNET-Pi2Go is a data migration tool designed to facilitate the conversion of BirdNET-Pi database contents and audio files to the BirdNET-Go data model."
license: "MIT"
formats:
- deb
bindir: "/usr/local/bin"
# Archive configuration for both Linux and Windows
archives:
- id: birdnet-pi2go
name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}'
format: tar.gz
format_overrides:
- goos: windows
format: zip
# Include checksums for all artifacts
checksum:
name_template: 'checksums.txt'
# Configuration for snapshot releases
snapshot:
name_template: "{{ .Tag }}-next"