-
-
Notifications
You must be signed in to change notification settings - Fork 9
/
.goreleaser.yml
52 lines (50 loc) · 1.13 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
builds:
- env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm
- arm64
ignore:
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
dir: app
ldflags: "-s -w -X main.revision={{.Tag}}-{{.ShortCommit}}-{{.CommitDate}}"
archives:
- name_template: "{{.ProjectName}}_{{.Tag}}_{{.Os}}_{{.Arch}}"
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- README.md
nfpms:
- id: updater
package_name: updater
file_name_template: "{{.ProjectName}}_{{.Tag}}_{{.Os}}_{{.Arch}}"
vendor: Umputun
homepage: https://updater.umputun.dev
maintainer: Umputun <[email protected]>
description: remote updater
license: MIT
formats:
- deb
- rpm
bindir: /usr/bin
epoch: 1
release: 1
contents:
- src: updater.service
dst: /etc/systemd/system/updater.service
- src: updater.yml
dst: /etc/updater-example.yml
type: config
scripts:
postinstall: "scripts/postinstall.sh"
preremove: "scripts/preremove.sh"