-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser-for-darwin.yml
52 lines (50 loc) · 1.01 KB
/
.goreleaser-for-darwin.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
# Make sure to check the documentation at http://goreleaser.com
# ---------------------------
# General
# ---------------------------
---
before:
hooks:
- make all
snapshot:
name_template: "{{ .Tag }}"
changelog:
sort: asc
filters:
exclude:
- '^.github:'
- '^.vscode:'
- '^docs:'
- '^test:'
# ---------------------------
# Builder
# ---------------------------
builds:
- id: darwin-build
main: ./cmd/
binary: alert_system
goos:
- darwin
goarch:
- amd64
- arm64
env:
- CGO_ENABLED=0
mod_timestamp: "{{ .CommitTimestamp }}"
ldflags:
- -s -w -X main.version={{.Version}}
# ---------------------------
# Archives + Checksums
# ---------------------------
archives:
- id: alert_system_darwin
builds:
- darwin-build
name_template: "alert_system_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: false
format: zip
files:
- LICENSE
checksum:
name_template: "checksums.txt"
algorithm: sha256