forked from dreadl0ck/netcap
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yml
142 lines (124 loc) · 3.34 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
140
141
142
builds:
-
main: ./cmd/
binary: netcap
env:
- CGO_ENABLED=1
# For more info refer to: https://golang.org/doc/install/source#environment
goos:
- darwin
- windows
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- -L /usr/local/opt/libpcap/lib -s -w -X main.build={{.Version}}
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
# - arm
# - arm64
# - 386
# List of combinations of GOOS + GOARCH + GOARM to ignore.
# Default is empty.
# ignore:
# - goos: windows
# goarch: 386
# - goos: darwin
# goarch: 386
# - goos: linux
# goarch: arm
# goarm: 7
# Hooks can be used to customize the final binary,
# for example, to run generators.
# Default is both hooks empty.
hooks:
# this hook is used to compile the linux version in a docker container
post: zeus build-all-linux-docker
#pre: rice embed-go
-
main: ./label/cmd/
binary: netlabel
env:
- CGO_ENABLED=1
# For more info refer to: https://golang.org/doc/install/source#environment
goos:
- darwin
- windows
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- -L /usr/local/opt/libpcap/lib -s -w -X main.build={{.Version}}
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
- arm
- arm64
-
main: ./server
binary: netcap-server
env:
- CGO_ENABLED=1
# For more info refer to: https://golang.org/doc/install/source#environment
goos:
- darwin
- windows
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- -L /usr/local/opt/libpcap/lib -s -w -X main.build={{.Version}}
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
- arm
- arm64
-
main: ./sensor
binary: netcap-sensor
env:
- CGO_ENABLED=1
# For more info refer to: https://golang.org/doc/install/source#environment
goos:
- darwin
- windows
# Custom ldflags templates.
# Default is `-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}}`.
ldflags:
- -L /usr/local/opt/libpcap/lib -s -w -X main.build={{.Version}}
# GOARCH to build for.
# For more info refer to: https://golang.org/doc/install/source#environment
# Defaults are 386 and amd64.
goarch:
- amd64
- arm
- arm64
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs:'
- '^test:'
brew:
github:
owner: dreadl0ck
name: homebrew-formulas
homepage: "https://github.com/dreadl0ck/netcap"
description: "A framework for secure and scalable network traffic analysis"
# archive:
# files:
# - dist/linux_amd64/**/*
# before:
# hooks:
# you may remove this if you don't use vgo
#- go mod download
# you may remove this if you don't need go generate
#- go generate ./...