generated from pterm/cli-template
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy path.goreleaser.yml
150 lines (141 loc) · 3.22 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
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
env:
- GO111MODULE=on
before:
hooks:
- go mod tidy
gomod:
proxy: true
builds:
- id: "synco"
main: ./main.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- '386'
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=pterm
- id: "synco-lite"
main: ./lite/main-lite.go
env:
- CGO_ENABLED=0
goos:
- linux
- darwin
- windows
- freebsd
goarch:
- 386
- amd64
- arm
- arm64
ignore:
- goos: windows
goarch: arm
- goos: windows
goarch: arm64
- goos: freebsd
goarch: arm
- goos: freebsd
goarch: arm64
mod_timestamp: '{{ .CommitTimestamp }}'
flags:
- -trimpath
ldflags:
- -s -w -X main.version={{.Version}} -X main.commit={{.Commit}} -X main.date={{ .CommitDate }} -X main.builtBy=pterm
checksum:
name_template: '{{ .ProjectName }}_checksums.txt'
changelog:
sort: asc
filters:
exclude:
- '^docs'
- '^test'
- '^ci'
- '^refactor'
- Merge pull request
- Merge branch
- go mod tidy
archives:
# zip etc for everybody
- id: synco
name_template: >-
{{ .ProjectName }}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
builds:
- synco
format_overrides:
- goos: windows
format: zip
# synco-lite, without zip file.
# needed for "curl https://synco.github.io/synco | sh" script to work
- id: synco_not_zipped
format: binary
builds:
- synco
name_template: >-
synco_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
# synco-lite, without zip file.
# needed for "curl https://synco.github.io/serve | sh" script to work
- id: synco-lite
format: binary
builds:
- synco-lite
name_template: >-
synco-lite_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
brews:
# homebrew should install the full synco script.
-
name: synco
ids:
- synco
tap:
owner: sandstorm
name: homebrew-tap
# Git author used to commit to the repository.
# Defaults are shown.
commit_author:
name: Sandstorm Release Bot
email: release-bot@sandstorm.de
# Folder inside the repository to put the formula.
# Default is the root folder.
folder: Formula
# Your app's homepage.
# Default is empty.
homepage: "https://github.com/sandstorm/synco"
# Your app's description.
# Default is empty.
description: "Sandstorm Synco"
install: |
libexec.install Dir["*"]
bin.write_exec_script libexec/"synco"