-
Notifications
You must be signed in to change notification settings - Fork 6
/
.goreleaser.yml
115 lines (110 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
112
113
114
115
# 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/fastget
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/fastget
main: ./cmd/fastget
hooks:
post:
- upx "{{ .Path }}"
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/fastget/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/fastget"
description: "A open source cli tool to ultra fast download files over HTTP(S)."
license: MIT
brews:
- name: fastget
ids:
- nix
description: "A open source cli tool to ultra fast download files over HTTP(S)."
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/fastget/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# Packages your package depends on.
homepage: "https://github.com/pgollangi/fastget"
install: bin.install "bin/fastget"
test: |
system "#{bin}/fastget version"
nfpms:
-
id: foo
package_name: fastget
replacements:
amd64: x86_64
386: i386
darwin: macOS
vendor: Prasana Kumar Gollangi
homepage: https://github.com/pgollangi/fastget
maintainer: Prasanna Kumar Gollangi <prassu158@gmail.com>
description: A open source cli tool to ultra fast download files over HTTP(S).
license: MIT
formats:
- deb
- rpm
checksum:
name_template: 'checksums.txt'
snapshot:
name_template: "{{ .Tag }}-next"
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test:'
- '^Merge'