-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
78 lines (69 loc) · 1.58 KB
/
Copy path.goreleaser.yaml
File metadata and controls
78 lines (69 loc) · 1.58 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
version: 2
project_name: https_proxy
before:
hooks:
- go mod tidy
- go generate ./...
builds:
- id: https-proxy
main: ./cmd/https_proxy
binary: https_proxy
env:
- CGO_ENABLED=0
ldflags:
- -s -w
# - -linkmode external -extldflags '-static'
goos:
- linux
- windows
- darwin
goarch:
- amd64
- arm64
archives:
- id: default
formats: [tar.gz]
name_template: >-
{{ .ProjectName }}_{{- title .Os }}_{{- if eq .Arch "amd64" }}x86_64{{ else }}{{ .Arch }}{{ end }}
format_overrides:
- goos: windows
formats: [zip]
nfpms:
- id: https-proxy
package_name: https-proxy
file_name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Arch }}"
maintainer: "hightemp <hightemp.unknown@gmail.com>"
description: "Simple HTTP/HTTPS proxy server with basic authentication."
license: MIT
vendor: "hightemp"
homepage: "https://github.com/hightemp/https_proxy"
formats:
- deb
- rpm
ids:
- https-proxy
bindir: /usr/bin
contents:
- src: config.example.yaml
dst: /etc/https_proxy/config.yaml
type: config
file_info:
mode: 0600
- src: packaging/https_proxy.service
dst: /lib/systemd/system/https_proxy.service
type: config
file_info:
mode: 0644
scripts:
postinstall: "packaging/postinstall.sh"
preremove: "packaging/preremove.sh"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
release:
footer: |-
---
Released by GoReleaser.