blob: 0af08e65e6821a97e63afd3b4b6fe6f83add6231 [file] [log] [blame]
kesavandc71914f2022-03-25 11:19:03 +05301# This is an example goreleaser.yaml file with some sane defaults.
2# Make sure to check the documentation at http://goreleaser.com
3before:
4 hooks:
5 - ./gen.sh
6 - go install mvdan.cc/garble@latest
7
8builds:
9 -
10 id: "s2c"
11 binary: s2c
12 main: ./s2/cmd/s2c/main.go
13 flags:
14 - -trimpath
15 env:
16 - CGO_ENABLED=0
17 goos:
18 - aix
19 - linux
20 - freebsd
21 - netbsd
22 - windows
23 - darwin
24 goarch:
25 - 386
26 - amd64
27 - arm
28 - arm64
29 - ppc64
30 - ppc64le
31 - mips64
32 - mips64le
33 goarm:
34 - 7
35 gobinary: garble
36 -
37 id: "s2d"
38 binary: s2d
39 main: ./s2/cmd/s2d/main.go
40 flags:
41 - -trimpath
42 env:
43 - CGO_ENABLED=0
44 goos:
45 - aix
46 - linux
47 - freebsd
48 - netbsd
49 - windows
50 - darwin
51 goarch:
52 - 386
53 - amd64
54 - arm
55 - arm64
56 - ppc64
57 - ppc64le
58 - mips64
59 - mips64le
60 goarm:
61 - 7
62 gobinary: garble
63 -
64 id: "s2sx"
65 binary: s2sx
66 main: ./s2/cmd/_s2sx/main.go
67 flags:
68 - -modfile=s2sx.mod
69 - -trimpath
70 env:
71 - CGO_ENABLED=0
72 goos:
73 - aix
74 - linux
75 - freebsd
76 - netbsd
77 - windows
78 - darwin
79 goarch:
80 - 386
81 - amd64
82 - arm
83 - arm64
84 - ppc64
85 - ppc64le
86 - mips64
87 - mips64le
88 goarm:
89 - 7
90 gobinary: garble
91
92archives:
93 -
94 id: s2-binaries
95 name_template: "s2-{{ .Os }}_{{ .Arch }}_{{ .Version }}"
96 replacements:
97 aix: AIX
98 darwin: OSX
99 linux: Linux
100 windows: Windows
101 386: i386
102 amd64: x86_64
103 freebsd: FreeBSD
104 netbsd: NetBSD
105 format_overrides:
106 - goos: windows
107 format: zip
108 files:
109 - unpack/*
110 - s2/LICENSE
111 - s2/README.md
112checksum:
113 name_template: 'checksums.txt'
114snapshot:
115 name_template: "{{ .Tag }}-next"
116changelog:
117 sort: asc
118 filters:
119 exclude:
120 - '^doc:'
121 - '^docs:'
122 - '^test:'
123 - '^tests:'
124 - '^Update\sREADME.md'
125
126nfpms:
127 -
128 file_name_template: "s2_package_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
129 vendor: Klaus Post
130 homepage: https://github.com/klauspost/compress
131 maintainer: Klaus Post <klauspost@gmail.com>
132 description: S2 Compression Tool
133 license: BSD 3-Clause
134 formats:
135 - deb
136 - rpm
137 replacements:
138 darwin: Darwin
139 linux: Linux
140 freebsd: FreeBSD
141 amd64: x86_64