-
Notifications
You must be signed in to change notification settings - Fork 2
/
.goreleaser.yml
executable file
·91 lines (91 loc) · 2.35 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
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
project_name: wg-ui
release:
github:
owner: UnAfraid
name: wg-ui
name_template: '{{.Tag}}'
builds:
- id: release
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
- mips
- mipsle
- mips64
- mips64le
gomips:
- softfloat
- hardfloat
- id: docker-release
binary: app
ldflags: -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{.Date}} -extldflags "-static"
env:
- CGO_ENABLED=0
goos:
- linux
goarch:
- amd64
- arm64
nfpms:
- id: default
homepage: https://github.com/UnAfraid/wg-ui
maintainer: Rumen Nikiforov <[email protected]>
description: wg-ui - Self-contained WireGuard management service with a web UI and GraphQL API written in pure Go.
license: "MIT"
builds:
- release
formats:
- deb
- archlinux
bindir: /usr/bin
contents:
- src: .env.dist
dst: /etc/default/wg-ui
- src: build/scripts/systemd/wg-ui.service
dst: /etc/systemd/system/wg-ui.service
scripts:
postinstall: build/scripts/debian/postinstall.sh
preremove: build/scripts/debian/preremove.sh
postremove: build/scripts/debian/postremove.sh
overrides:
archlinux:
scripts:
postinstall: build/scripts/archlinux/postinstall.sh
preremove: build/scripts/archlinux/preremove.sh
postremove: build/scripts/debian/postremove.sh
archlinux:
pkgbase: wg-ui
packager: Rumen Nikiforov <[email protected]>
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
algorithm: sha512
changelog:
sort: asc
filters:
exclude:
- '^ci:'
- '^docs?:'
- '^readme:'
- '^tests?:'
- Merge pull request
- Merge branch
archives:
- name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- .Arch }}
{{- if eq .Arch "mips" }}_{{- title .Mips }}{{ end }}
{{- if eq .Arch "mipsle" }}_{{- title .Mips }}{{ end }}
{{- if eq .Arch "mips64" }}_{{- title .Mips }}{{ end }}
{{- if eq .Arch "mips64le" }}_{{- title .Mips }}{{ end }}
builds:
- release
files:
- .env.dist
- LICENSE
- README.md