-
-
Notifications
You must be signed in to change notification settings - Fork 58
/
.goreleaser.yml
80 lines (77 loc) · 2.04 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
# This is an example .goreleaser.yml file with some sane defaults.
# Make sure to check the documentation at http://goreleaser.com
before:
hooks:
- go mod download
- go install github.com/golang/mock/[email protected]
- go generate gen.go
release:
# Creat a draft commit that needs manual confirmation
draft: true
# If set to auto, will mark the release as not ready for
# production if suffix contains -rc1 or similar.
prerelease: auto
name_template: "Release {{.Tag}}"
builds:
- main: ./cmd/pcp/pcp.go
binary: pcp
ldflags: -X main.RawVersion={{.RawVersion}} -X main.ShortCommit={{.ShortCommit}}
env:
- CGO_ENABLED=0
goos:
- darwin
- linux
# - windows
- freebsd
- netbsd
- openbsd
- dragonfly
goarch:
- amd64
- 386
- arm
- arm64
ignore:
- goos: darwin
goarch: 386
nfpms:
- formats:
- apk
- deb
- rpm
vendor: "dtrautwein.eu"
homepage: "https://github.com/dennis-tra/pcp"
maintainer: "Dennis Trautwein <[email protected]>"
description: "Command line peer-to-peer data transfer tool based on libp2p."
license: "Apache License Version 2.0"
file_name_template: "{{.ProjectName}}_{{.RawVersion}}_{{.Os}}-{{.Arch}}"
replacements:
darwin: macos
archives:
- format: tar.gz
# format_overrides:
# - goos: windows
# format: zip
replacements:
darwin: macos
checksum:
name_template: 'checksums.txt'
changelog:
sort: desc
brews:
- tap:
owner: dennis-tra
name: homebrew-tap
folder: Formula
description: "pcp is a command line peer-to-peer data transfer tool based on libp2p."
homepage: "https://github.com/dennis-tra/pcp"
license: "Apache License Version 2.0"
test: |
system "#{bin}/croc --version"
#scoop:
# bucket:
# owner: dennis-tra
# name: scoop-bucket
# homepage: "https://github.com/dennis-tra/pcp"
# description: "pcp is a command line peer-to-peer data transfer tool based on libp2p."
# license: "Apache License Version 2.0"