-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
172 lines (162 loc) · 4.44 KB
/
.goreleaser.yaml
File metadata and controls
172 lines (162 loc) · 4.44 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
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
project_name: paretosecurity
before:
hooks:
- go mod tidy
- go tool go-winres make --product-version=git-tag --file-version=git-tag --arch="amd64,386,arm64"
- sh -c "cp *.syso cmd/paretosecurity/"
- sh -c "cp *.syso cmd/paretosecurity-tray/"
- sh -c "cp *.syso cmd/paretosecurity-installer/"
builds:
- main: ./cmd/paretosecurity
id: agent
env:
- CGO_ENABLED=0
goos:
- linux
- windows
goarch:
- amd64
- arm64
flags:
- -v
- -trimpath
- -mod=readonly
gcflags:
- all=-trimpath=${GOPATH} -l -B
tags:
- toast
ldflags:
- -s -w
- -X github.com/ParetoSecurity/agent/shared.Version={{.Version}}
- -X github.com/ParetoSecurity/agent/shared.Commit={{.Commit}}
- -X github.com/ParetoSecurity/agent/shared.Date={{.Date}}
binary: paretosecurity
- main: ./cmd/paretosecurity-tray
id: tray
env:
- CGO_ENABLED=0
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
goos:
- windows
goarch:
- amd64
flags:
- -v
- -trimpath
- -buildvcs=false
- -mod=readonly
gcflags:
- all=-trimpath=${GOPATH} -l -B
ldflags:
- -s -w
- -H windowsgui -buildid=
- -X github.com/ParetoSecurity/agent/shared.Version={{.Version}}
- -X github.com/ParetoSecurity/agent/shared.Commit={{.Commit}}
- -X github.com/ParetoSecurity/agent/shared.Date={{.Date}}
binary: paretosecurity-tray
- main: ./cmd/paretosecurity-installer
id: installer
env:
- CGO_ENABLED=0
- GOPROXY=https://proxy.golang.org,direct
- GOSUMDB=sum.golang.org
goos:
- windows
goarch:
- amd64
flags:
- -v
- -trimpath
- -buildvcs=false
- -mod=readonly
tags:
- production
- desktop
gcflags:
- all=-trimpath=${GOPATH} -l -B
ldflags:
- -s -w
- -H windowsgui -buildid=
- -X github.com/ParetoSecurity/agent/shared.Version={{.Version}}
- -X github.com/ParetoSecurity/agent/shared.Commit={{.Commit}}
- -X github.com/ParetoSecurity/agent/shared.Date={{.Date}}
binary: paretosecurity-installer
# chocolateys:
# - name: paretosecurity
# owners: Niteo GmbH
# title: Pareto Security
# authors: Niteo GmbH
# project_url: https://paretosecurity.com
# package_source_url: https://github.com/ParetoSecurity/agent
# description: |
# {{ .ProjectName }} installer package.
# Automatically audit your device for basic security hygiene.
# skip_publish: false
upx:
- enabled: false
brute: true
compress: best
ids:
- installer
goos:
- windows
archives:
- format: binary
nfpms:
- vendor: paretosecurity.com
builds: [ agent ]
homepage: https://github.com/ParetoSecurity/agent
maintainer: Pareto Security
description: Automatically audit your Linux machine for basic security hygiene.
license: GPL3
formats: [ deb, rpm, apk, archlinux ]
bindir: /usr/bin
file_name_template: "{{ .ProjectName }}_{{ .Arch }}.{{ .Format }}"
dependencies:
- curl
recommends:
- gnome-shell-extension-appindicator
scripts:
postinstall: "apt/postinstall.sh"
contents:
# Desktop files
- src: apt/ParetoSecurity.desktop
dst: /usr/share/applications/ParetoSecurity.desktop
- src: apt/ParetoSecurityLink.desktop
dst: /usr/share/applications/ParetoSecurityLink.desktop
# Icons
- src: assets/icon.png
dst: /usr/share/icons/hicolor/512x512/apps/ParetoSecurity.png
# Services
- src: apt/paretosecurity.service
dst: /etc/systemd/system/paretosecurity.service
- src: apt/paretosecurity.socket
dst: /etc/systemd/system/paretosecurity.socket
- src: apt/paretosecurity-trayicon.service
dst: /usr/lib/systemd/user/paretosecurity-trayicon.service
- src: apt/paretosecurity-user.service
dst: /usr/lib/systemd/user/paretosecurity-user.service
- src: apt/paretosecurity-user.timer
dst: /usr/lib/systemd/user/paretosecurity-user.timer
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
skip_upload: true
header: |
## Release {{ .Version }}
#### Installing on Linux (Debian, Fedora, ArchLinux, NixOS, etc.)
```bash
curl -sL pkg.paretosecurity.com/install.sh | sudo bash
```
#### Installing on Windows (Windows 10, Windows 11)
Download the {{ .Version }} release from [here](https://github.com/ParetoSecurity/agent/releases/download/{{ .Version }}/paretosecurity-installer-amd64.exe)