-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
105 lines (97 loc) · 2.48 KB
/
.goreleaser.yaml
File metadata and controls
105 lines (97 loc) · 2.48 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
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
before:
hooks:
- go mod tidy
# Frontend must be pre-built by CI before goreleaser runs.
# This hook verifies the build artifacts exist.
- test -d frontend/build
builds:
- id: kefw2ui
main: .
binary: kefw2ui
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
goarch:
- amd64
- arm64
goarm:
- "7"
mod_timestamp: "{{ .CommitTimestamp }}"
flags:
- -trimpath
ldflags:
- -s
- -w
- -X main.version={{.Version}}
- -X main.commit={{.Commit}}
archives:
- formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else }}{{ .Arch }}{{ end }}
files:
- README.md
- LICENSE
- kefw2ui.service
homebrew_casks:
- name: kefw2ui
commit_author:
name: Jens Hilligsoe
email: github@hilli.dk
commit_msg_template: "Brew cask update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/hilli/kefw2ui"
description: "Web UI for controlling KEF W2 speakers"
url:
template: "https://github.com/hilli/kefw2ui/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
verified: "github.com/hilli/kefw2ui/"
skip_upload: false
hooks:
post:
install: |
if OS.mac?
system_command "/usr/bin/xattr", args: ["-dr", "com.apple.quarantine", "#{staged_path}/kefw2ui"]
end
repository:
owner: hilli
name: homebrew-tap
branch: release-kefw2ui-{{.Tag}}
pull_request:
enabled: true
draft: false
changelog:
disable: true
nfpms:
- file_name_template: "{{ .ConventionalFileName }}"
id: packages
homepage: https://github.com/hilli/kefw2ui
description: |-
Web UI for controlling KEF W2 speakers (LSX Wireless II (LT)/LS50 Wireless II/LS60 Wireless)
maintainer: Jens Hilligsøe <kefw2@hilli.dk>
license: MIT
vendor: Jens Hilligsøe
bindir: /usr/bin
section: utils
contents:
- src: ./LICENSE
dst: /usr/share/doc/kefw2/copyright
file_info:
mode: 0644
formats:
- apk
- deb
- rpm
- archlinux
deb:
lintian_overrides:
- statically-linked-binary
- changelog-file-missing-in-native-package
snapshot:
version_template: "{{ incpatch .Version }}"