forked from arriven/db1000n
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
54 lines (54 loc) · 1.26 KB
/
.goreleaser.yaml
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
project_name: db1000n
builds:
- id: db1000n
env:
- CGO_ENABLED=0
dir: .
main: .
goos:
- linux
- windows
- darwin
- freebsd
- netbsd
- openbsd
- dragonfly
- aix
- illumos
- solaris
goarch:
- amd64
- arm64
- arm
- "386"
- "mips"
- "mips64"
- "mips64le"
- "mipsle"
- "riscv64"
- "s390x"
gomips:
- hardfloat
- softfloat
flags:
- -tags=encrypted
goarm:
- "5"
- "6"
- "7"
ldflags:
- -s -w
- -extldflags "-static"
- -X github.com/Arriven/db1000n/src/utils/ota.Version={{ .Version }}
- -X github.com/Arriven/db1000n/src/utils.ProtectedKeys={{ .Env.PROTECTED_KEYS }}
- -X github.com/Arriven/db1000n/src/job/config.DefaultConfig={{ .Env.DEFAULT_CONFIG_VALUE }}
- -X github.com/Arriven/db1000n/src/job.DefaultConfigPathCSV={{ .Env.DEFAULT_CONFIG_PATH }}
archives:
- id: default
name_template: '{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Mips }}_{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
builds:
- db1000n
format: tar.gz
format_overrides:
- goos: windows
format: zip