forked from Fantom-foundation/go-opera
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
58 lines (53 loc) · 1.14 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
before:
hooks:
- make clean proto vendor
builds:
- main: ./cmd/opera/main.go
binary: go-opera
ldflags:
- -linkmode external -extldflags -static -s -w
- -X main.gitCommit={{ .ShortCommit }}
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
archive:
replacements:
darwin: Darwin
linux: Linux
windows: Windows
386: i386
amd64: x86_64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
nfpm:
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
replacements:
amd64: 64-bit
386: 32-bit
darwin: macOS
linux: Tux
vendor: Fanton Foundation
homepage: https://fantom.foundation
maintainer: Samuel Marks <[email protected]>
description: BFT Consensus platform for distributed applications.
license: MIT
formats:
- deb
- rpm
empty_folders:
- /var/log/go-opera
files:
"scripts/daemon/go-opera.service": "/lib/systemd/system/go-opera.service"
# scripts:
# preinstall: "scripts/preinstall.bash"