-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
92 lines (81 loc) · 1.51 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
before:
hooks:
- make install
builds:
- id: darwin
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
hooks:
pre:
- cmd: make version={{.Version}} bundle-darwin
- cmd: mv bin/darwin/affectum_{{.Version}}_darwin_x86_64.dmg dist/
ldflags:
- -s -w -X main.version={{.Version}}
- id: linux
# skip: true
env:
- CGO_ENABLED=1
goos:
# - linux
- darwin # fake linux build in macOS in Docker
goarch:
- amd64
ldflags:
- -s -w -X main.version={{.Version}}
hooks:
post:
- cmd: make version={{.Version}} bundle-linux
- cmd: rm dist/linux_darwin_amd64/affectum
- cmd: mv bin/linux/affectum dist/linux_darwin_amd64
- id: windows
env:
- CGO_ENABLED=0
goos:
- windows
goarch:
- amd64
ldflags:
- -H=windowsgui
- -s -w -X main.version={{.Version}}
archives:
- id: darwin
builds:
- darwin
replacements:
amd64: x86_64
files:
- LICENSE
- id: linux
builds:
- linux
replacements:
darwin: linux
amd64: x86_64
files:
- LICENSE
- id: windows
builds:
- windows
replacements:
amd64: x86_64
format: zip
files:
- LICENSE
checksum:
algorithm: sha256
snapshot:
name_template: 0.0.0-SNAPSHOT-{{.ShortCommit}}
changelog:
sort: asc
filters:
exclude:
- '^.github:'
- '^docs:'
- '^test:'
- '^assets:'
- '^docs:'
- '^readme:'