-
-
Notifications
You must be signed in to change notification settings - Fork 3
/
.goreleaser.yml
65 lines (59 loc) · 1.19 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
# https://goreleaser.com
project_name: plexarr
env:
- GO111MODULE=on
- CGO_ENABLED=1
# Build
builds:
- id: build_darwin
env:
- CC=o64-clang
- CXX=o64-clang++
main: ./cmd/plexarr
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w
- -X "main.Version={{ .Version }}"
- -X "main.GitCommit={{ .ShortCommit }}"
- -X "main.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
- id: build_linux
main: ./cmd/plexarr
goos:
- linux
goarch:
- amd64
ldflags:
- -linkmode external
- -extldflags -static
- -s -w
- -X "main.Version={{ .Version }}"
- -X "main.GitCommit={{ .ShortCommit }}"
- -X "main.Timestamp={{ .Timestamp }}"
flags:
- -trimpath
- -tags=netgo
- -v
# Archive
archives:
-
name_template: "{{ .ProjectName }}_v{{ .Version }}_{{ .Os }}_{{ .Arch }}"
format: "binary"
# Checksum
checksum:
name_template: "checksums.txt"
algorithm: sha512
# Snapshot
snapshot:
name_template: "{{ .Major }}.{{ .Minor }}.{{ .Patch }}-dev+{{ .ShortCommit }}"
# Changelog
changelog:
filters:
exclude:
- "^docs:"
- "^test:"
- "^Merge branch"