-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy path.goreleaser.yml
More file actions
97 lines (89 loc) · 2.2 KB
/
Copy path.goreleaser.yml
File metadata and controls
97 lines (89 loc) · 2.2 KB
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
version: 2
project_name: wisp
builds:
- id: archives-unix
main: .
binary: wisp
- flags:
- -trimpath
ldflags:
- -w -s
- -X 'github.com/jumpserver/wisp/cmd.Version={{ .Tag }}'
- -X 'github.com/jumpserver/wisp/cmd.BuildTime={{ .Date }}'
- -X 'github.com/jumpserver/wisp/cmd.GitCommit={{ .ShortCommit }}'
- -X 'github.com/jumpserver/wisp/cmd.GoVersion={{ .Env.GOVERSION }}'
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
- openbsd
- netbsd
goarch:
- amd64
- arm64
- mips64le
- ppc64le
- s390x
- riscv64
- loong64
- id: linux-deb
main: .
binary: wisp
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
flags:
- -trimpath
ldflags:
- -s -w
- -X 'github.com/jumpserver/wisp/cmd.Version={{ .Tag }}'
- -X 'github.com/jumpserver/wisp/cmd.BuildTime={{ .Date }}'
- -X 'github.com/jumpserver/wisp/cmd.GitCommit={{ .ShortCommit }}'
- -X 'github.com/jumpserver/wisp/cmd.GoVersion={{ .Env.GOVERSION }}'
hooks:
post:
- cmd: >-
{{- if eq .Arch "arm64" -}}
aarch64-linux-gnu-objcopy --remove-section .go.buildinfo "{{ .Path }}"
{{- else -}}
objcopy --remove-section .go.buildinfo "{{ .Path }}"
{{- end -}}
output: true
archives:
- id: tarballs
ids:
- archives-unix
formats:
- tar.gz
name_template: >-
{{ .ProjectName }}-{{ .Version }}-{{ .Os }}-{{ .Arch }}
files:
- config_example.yml
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
nfpms:
- id: linux-packages
ids:
- linux-deb
package_name: wisp
formats:
- deb
file_name_template: >-
{{ .PackageName }}_linux_{{ .Arch }}
bindir: /usr/local/bin
maintainer: JumpServer Dev <support@jumpserver.org>
description: Wisp is the communication component between JumpServer terminal services and the Core API.
homepage: https://github.com/jumpserver/wisp
checksum:
name_template: checksums.txt
changelog:
disable: true