-
Notifications
You must be signed in to change notification settings - Fork 411
Expand file tree
/
Copy path.goreleaser.yml
More file actions
224 lines (203 loc) · 5.18 KB
/
Copy path.goreleaser.yml
File metadata and controls
224 lines (203 loc) · 5.18 KB
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
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
# GoReleaser v2 configuration
version: 2
project_name: agentfield
before:
hooks:
- npm --prefix control-plane/web/client install --silent
- npm --prefix control-plane/web/client run build --silent
builds:
- id: agentfield-linux-amd64
dir: control-plane
main: ./cmd/af
binary: agentfield-linux-amd64
env:
- CGO_ENABLED=1
goos:
- linux
goarch:
- amd64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
tags:
- embedded
- sqlite_fts5
- id: agentfield-linux-arm64
dir: control-plane
main: ./cmd/af
binary: agentfield-linux-arm64
env:
- CGO_ENABLED=1
- CC=aarch64-linux-gnu-gcc
goos:
- linux
goarch:
- arm64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
tags:
- embedded
- sqlite_fts5
- id: agentfield-darwin-amd64
dir: control-plane
main: ./cmd/af
binary: agentfield-darwin-amd64
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
tags:
- embedded
- sqlite_fts5
- id: agentfield-darwin-arm64
dir: control-plane
main: ./cmd/af
binary: agentfield-darwin-arm64
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- arm64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
tags:
- embedded
- sqlite_fts5
# AgentField desktop tray (menu-bar companion). macOS only — it carries the
# systray/Cocoa (CGO) dependency so the control-plane binary never has to.
# A separate, small binary; the installer fetches it only on macOS.
- id: agentfield-tray-darwin-amd64
dir: control-plane
main: ./cmd/af-tray
binary: agentfield-tray-darwin-amd64
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- amd64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
- id: agentfield-tray-darwin-arm64
dir: control-plane
main: ./cmd/af-tray
binary: agentfield-tray-darwin-arm64
env:
- CGO_ENABLED=1
goos:
- darwin
goarch:
- arm64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
# Windows CLI/server binary (goreleaser appends .exe automatically).
# Groundwork only: the release workflow's build matrix filters by --id and
# does not build this id yet. CGO is required (mattn/go-sqlite3 with
# sqlite_fts5), so building it needs either a windows runner (drop the CC
# override) or mingw-w64 on the linux runner (mirrors the aarch64
# cross-compile approach).
- id: agentfield-windows-amd64
dir: control-plane
main: ./cmd/af
binary: agentfield-windows-amd64
env:
- CGO_ENABLED=1
- CC=x86_64-w64-mingw32-gcc
goos:
- windows
goarch:
- amd64
ldflags:
- -s -w
- -X main.version={{ .Version }}
- -X main.commit={{ .ShortCommit }}
- -X main.date={{ .Date }}
tags:
- embedded
- sqlite_fts5
# Don't create archives - ship raw binaries
archives:
- id: default
ids:
- agentfield-linux-amd64
- agentfield-linux-arm64
- agentfield-darwin-amd64
- agentfield-darwin-arm64
- agentfield-windows-amd64
- agentfield-tray-darwin-amd64
- agentfield-tray-darwin-arm64
formats: [binary]
# Each build's `binary:` is already the exact asset name we want
# (agentfield-<os>-<arch> and agentfield-tray-darwin-<arch>); goreleaser
# appends .exe for the windows build on its own.
name_template: "{{ .Binary }}"
checksum:
name_template: "checksums.txt"
algorithm: sha256
release:
github:
owner: Agent-Field
name: agentfield
draft: false
prerelease: auto
name_template: "AgentField v{{ .Version }}"
header: |
## AgentField v{{ .Version }}
### Installation
**Installation:**
```bash
curl -fsSL https://agentfield.ai/install.sh | bash
```
### Version Pinning
```bash
VERSION={{ .Version }} curl -fsSL https://agentfield.ai/install.sh | bash
```
### Manual Download
Download the binary for your platform below, make it executable, and move it to your PATH.
### Supported Platforms
- **macOS Intel:** `agentfield-darwin-amd64`
- **macOS Apple Silicon:** `agentfield-darwin-arm64`
- **Linux x86_64:** `agentfield-linux-amd64`
- **Linux ARM64:** `agentfield-linux-arm64`
changelog:
use: git
sort: asc
abbrev: 0
groups:
- title: Features
regexp: '^.*?feat(\([[:word:]]+\))??!?:.+$'
order: 0
- title: Bug Fixes
regexp: '^.*?fix(\([[:word:]]+\))??!?:.+$'
order: 1
- title: Others
order: 999
filters:
exclude:
- '^docs:'
- '^test:'
- '^chore:'
- '^ci:'
- '^style:'