-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yml
109 lines (103 loc) · 2.47 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
# GoReleaser configuration
# Release Go projects as fast and easily as possible.
# https://goreleaser.com
#
# .goreleaser.yml
#
# to test this config:
# goreleaser check
# goreleaser release --snapshot --clean
#
# create a version tag and push it:
# git tag -a v0.1.0 -m "First release"
# git push origin v0.1.0
version: 2
project_name: retrotxtgo
dist: './.dist' # make dist a hidden directory to avoid cluttering the project root
before:
hooks:
- go mod tidy
builds:
- id: BSD
binary: retrotxt
goos: ['freebsd']
goarch: ['amd64']
- id: Linux_Intel
binary: retrotxt
goos: ['linux']
goarch: ['amd64']
- id: Linux_arm64
binary: retrotxt
goos: ['linux']
goarch: ['arm64']
- id: macOS
binary: retrotxt
goos: ['darwin']
goarch: ['amd64', 'arm64']
- id: Windows
binary: retrotxt
goos: ['windows']
goarch: ['amd64']
universal_binaries:
- id: macOS
name_template: "{{ .ProjectName }}"
replace: true
env:
- CGO_ENABLED=0
archives:
- id: BSD
builds: ['BSD']
format: tar.gz
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: Linux_Intel
builds: ['Linux_Intel']
format: tar.gz
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: Linux_arm64
builds: ['Linux_arm64']
format: tar.gz
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: macOS
builds: ['macOS']
format: tar.gz
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
- id: Windows
builds: ['Windows']
format: zip
files:
- none*
name_template: "{{ .ProjectName }}_{{ .Os }}_{{ .Arch }}"
nfpms:
- id: Linux
builds: ['Linux_Intel']
file_name_template: "{{ .ProjectName }}"
vendor: Ben Garrett.
homepage: https://retrotxt.com/go
maintainer: Ben Garrett <[email protected]>
description: Read legacy code page encoded textfiles in a modern Unicode terminal.
license: LGPL 3.0
formats:
- apk
- deb
- rpm
- archlinux
changelog:
use: git
upx:
-
enabled: true
ids: [Linux_Intel, Windows]
# Valid options are from '1' (faster) to '9' (better), and 'best'.
compress: best
# Whether to try LZMA (slower).
lzma: true
# Whether to try all methods and filters (slow).
brute: true