forked from iotaledger/hornet
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
139 lines (124 loc) · 3.04 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
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
# Documentation at http://goreleaser.com
# Project name
project_name: HORNET
# Environment variables
env:
- GO111MODULE=on
# Builds
builds:
# Linux AMD64
- id: hornet-linux-amd64
binary: hornet
flags:
- -tags=builtin_static,rocksdb
ldflags:
- -s -w -X github.com/gohornet/hornet/core/cli.AppVersion={{.Version}}
main: main.go
goos:
- linux
goarch:
- amd64
# Linux ARM64
- id: hornet-linux-arm64
binary: hornet
flags:
- -tags=builtin_static,rocksdb
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
ldflags:
- -s -w -X github.com/gohornet/hornet/core/cli.AppVersion={{.Version}}
main: main.go
goos:
- linux
goarch:
- arm64
# Archives
archives:
- format: tar.gz
wrap_in_directory: true
format_overrides:
- goos: windows
format: zip
name_template: "{{.ProjectName}}-{{.Version}}_{{.Os}}_{{.Arch}}"
replacements:
amd64: x86_64
arm64: ARM64
darwin: macOS
linux: Linux
windows: Windows
files:
- README.md
- LICENSE
- config.json
- config_as.json
- peering.json
- profiles.json
# DEB and RPM packages
nfpms:
- id: nfpm
package_name: hornet
file_name_template: '{{ tolower .ProjectName }}_{{ replace .Version "v" "" }}_{{ .Arch }}'
vendor: GoReleaser
license: Apache 2.0
maintainer: GoHORNET
homepage: https://github.com/gohornet/hornet
description: HORNET is a powerful IOTA fullnode software.
formats:
- deb
- rpm
bindir: /usr/bin
contents:
- src: "nfpm/shared_files/hornet.service"
dst: "/lib/systemd/system/hornet.service"
- src: "config.json"
dst: "/var/lib/hornet/config.json"
type: config
- src: "config_as.json"
dst: "/var/lib/hornet/config_as.json"
type: config
- src: "peering.json"
dst: "/var/lib/hornet/peering.json"
type: config
- src: "profiles.json"
dst: "/var/lib/hornet/profiles.json"
type: config
- src: "nfpm/shared_files/hornet.env"
dst: "/etc/default/hornet"
type: config
dependencies:
- systemd
- wget
- bash
scripts:
preremove: "nfpm/deb_files/prerm"
postremove: "nfpm/deb_files/postrm"
preinstall: "nfpm/deb_files/preinst"
postinstall: "nfpm/deb_files/postinst"
overrides:
rpm:
replacements:
amd64: x86_64
file_name_template: "{{ tolower .ProjectName }}-{{ .Version }}-{{ .Arch }}"
scripts:
preinstall: "nfpm/rpm_files/preinst"
postinstall: "nfpm/rpm_files/postinst"
preremove: "nfpm/rpm_files/prerm"
postremove: "nfpm/rpm_files/postrm"
# Checksum
checksum:
name_template: "checksums.txt"
# Snapshot
snapshot:
name_template: "{{ .Tag }}"
# Changelog
changelog:
skip: true
# Release
release:
prerelease: auto
name_template: "{{.ProjectName}}-{{.Version}}"
github:
owner: gohornet
name: hornet