-
Notifications
You must be signed in to change notification settings - Fork 1
/
.goreleaser.yml
111 lines (107 loc) · 2.9 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
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
# This is an example goreleaser.yaml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
# You may remove this if you don't use go modules.
- go mod download
# you may remove this if you don't need go generate
- go generate ./...
builds:
- main: ./cmd/netselect
env:
- CGO_ENABLED=0
ldflags:
- -s -w -X main.version={{.Version}} -X main.build={{time "01/02/2006"}}
goos:
- linux
- windows
- darwin
- <<: &build_defaults
binary: bin/netselect
main: ./cmd/netselect
id: macos
goos: [darwin]
goarch: [amd64]
- <<: *build_defaults
id: linux
goos: [linux]
goarch: [386, amd64]
- <<: *build_defaults
id: windows
goos: [windows]
goarch: [386, amd64]
archives:
- replacements:
darwin: macOS
386: i386
amd64: x86_64
format_overrides:
- goos: windows
format: zip
- id: nix
builds: [macos, linux]
<<: &archive_defaults
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: false
replacements:
darwin: macOS
linux: linux
format: tar.gz
scoop:
url_template: "http://github.com/pgollangi/netselect/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
bucket:
owner: pgollangi
name: scoop-bucket
commit_author:
name: Prasanna Kumar Gollangi
email: prassu158@gmail.com
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
homepage: "https://github.com/pgollangi/netselect"
description: "A open source cli tool to find fastest host based on the lowest ICMP latency."
license: MIT
brews:
- name: netselect
ids:
- nix
description: "A open source cli tool to find fastest host based on the lowest ICMP latency."
commit_author:
name: Prasanna Kumar Gollangi
email: prassu158@gmail.com
folder: Formula
goarm: 6
tap:
owner: pgollangi
name: homebrew-tap
url_template: "http://github.com/pgollangi/netselect/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Packages your package depends on.
homepage: "https://github.com/pgollangi/netselect"
install: bin.install "bin/netselect"
test: |
system "#{bin}/netselect version"
nfpms:
-
id: foo
package_name: netselect
replacements:
amd64: x86_64
386: i386
darwin: macOS
vendor: Prasana Kumar Gollangi
homepage: https://github.com/pgollangi/netselect
maintainer: Prasanna Kumar Gollangi <prassu158@gmail.com>
description: A open source cli tool to find fastest host based on the lowest ICMP latency.
license: MIT
formats:
- deb
- rpm
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test:'
- '^Merge'