-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yaml
102 lines (97 loc) · 3.1 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
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
project_name: cshargextcap
dist: ./dist
before:
hooks:
- go generate .
- ./scripts/go-winres.sh make --in winres.json --product-version=git-tag --file-version=git-tag --arch amd64
builds:
- id: default
main: ./cmd/cshargextcap
binary: cshargextcap
targets:
- linux_amd64_v1
- linux_arm64
- darwin_amd64
- darwin_arm64
tags:
- netgo
- osusergo
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
- id: windows
main: ./cmd/cshargextcap
binary: cshargextcap-{{ .Arch }}-installer # play shenanigans with the build mechanism ;)
targets:
- windows_amd64_v1
tags:
- netgo
- osusergo
ldflags:
- '-s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -X main.builtBy=goreleaser'
hooks:
post:
- cmd: packaging/windows/post.sh {{ .Path }}
output: true
nfpms:
- id: default
package_name: cshargextcap
file_name_template: '{{ .PackageName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ if not (eq .Amd64 "v1") }}{{ .Amd64 }}{{ end }}'
vendor: Siemens
homepage: https://github.com/siemens/cshargextcap
maintainer: Harald Albrecht <[email protected]>
description: |-
ContainerShark Wireshark external capture plugin installer package.
Capture network traffic in Docker virtual container networks.
license: MIT
formats:
- apk
- deb
- rpm
meta: true
contents:
- src: packaging/linux/com.github.siemens.packetflix.desktop
dst: /usr/share/applications/com.github.siemens.packetflix.desktop
- packager: apk
src: 'dist/default_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Amd64 }}_{{ . }}{{ end }}/cshargextcap'
dst: /usr/lib/wireshark/extcap/
file_info:
mode: 0755
- packager: deb
src: 'dist/default_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Amd64 }}_{{ . }}{{ end }}/cshargextcap'
dst: /usr/lib/{{ if eq .Arch "amd64"}}x86_64{{ end }}{{ if eq .Arch "arm64"}}aarch64{{ end }}-linux-gnu/wireshark/extcap/
file_info:
mode: 0755
- packager: rpm
src: 'dist/default_{{ .Os }}_{{ .Arch }}{{ with .Arm }}v{{ . }}{{ end }}{{ with .Amd64 }}_{{ . }}{{ end }}/cshargextcap'
dst: /usr/lib64/wireshark/extcap/
file_info:
mode: 0755
scripts:
postinstall: packaging/linux/post-install.sh
postremove: packaging/linux/post-remove.sh
dependencies:
- desktop-file-utils
overrides:
apk:
dependencies:
- wireshark-common
- desktop-file-utils
deb:
dependencies:
- wireshark-common
- desktop-file-utils
recommends:
- tshark | wireshark
rpm:
dependencies:
- wireshark-cli
archives:
- id: default
format: tar.gz
format_overrides:
- goos: windows
format: zip
files:
- README.md
- LICENSE
rlcp: true