Repository navigation
Expand file tree
/
Copy path.goreleaser.yaml
More file actions
341 lines (329 loc) · 9.35 KB
/
Copy path.goreleaser.yaml
File metadata and controls
341 lines (329 loc) · 9.35 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
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
version: 2
env:
- DOCKER_IMAGE_REPO={{ envOrDefault "DOCKER_IMAGE_REPO" "xgo" }}
dist: .dist
before:
hooks:
- go mod download
builds:
- id: xgo
main: ./cmd/xgo
binary: bin/xgo
flags:
- -trimpath
ldflags:
- -X github.com/goplus/xgo/env.buildVersion=v{{.Version}}
- -X github.com/goplus/xgo/env.buildDate={{.CommitDate}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
mod_timestamp: "{{ .CommitTimestamp }}"
- id: gop
main: ./cmd/xgo
binary: bin/gop
flags:
- -trimpath
ldflags:
- -X github.com/goplus/xgo/env.buildVersion=v{{.Version}}
- -X github.com/goplus/xgo/env.buildDate={{.CommitDate}}
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
mod_timestamp: "{{ .CommitTimestamp }}"
archives:
- format: tar.gz
name_template: >-
{{.ProjectName}}{{.Version}}.{{.Os}}-{{.Arch}}
{{- if .Arm}}v{{.Arm}}{{end}}
format_overrides:
- goos: windows
format: zip
files:
- "CLAUDE.md"
- "CODE_OF_CONDUCT.md"
- "Dockerfile"
- "LICENSE"
- "Makefile"
- "README.md"
- "all.bash"
- "all.bat"
- "ast"
- "tpl"
- "tool"
- "builtin"
- "cl"
- "cmd"
- "doc"
- "dql"
- "encoding"
- "env"
- "format"
- "go.mod"
- "go.sum"
- "make.bash"
- "make.bat"
- "parser"
- "printer"
- "scanner"
- "test"
- "demo"
- "token"
- "x"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
dockers_v2:
- id: xgo
dockerfile: Dockerfile
images:
- "{{ .Env.DOCKER_IMAGE_REPO }}"
tags:
- "{{ .Version }}"
- "{{ .Major }}.{{ .Minor }}"
- "{{ .Major }}"
- latest
platforms:
- linux/386
- linux/amd64
- linux/arm64
build_args:
USE_GORELEASER_ARTIFACTS: "1"
extra_files:
- ./
winget:
- name: goplus
homepage: "https://xgo.dev/"
publisher: goplus
publisher_url: https://github.com/goplus/xgo
publisher_support_url: "https://github.com/goplus/xgo/issues/new"
package_identifier: goplus.xgo
path: "manifests/g/goplus/xgo/{{.Version}}"
tags:
- golang
- go
- xgo
- goplus
- programming
- language
- compiler
- interpreter
- data science
- engineering
- education
short_description: The XGo Programming Language
description: |
The XGo programming language is designed for engineering, STEM education, and data science.
- For engineering: working in the simplest language that can be mastered by children.
- For STEM education: studying an engineering language that can be used for work in the future.
- For data science: communicating with engineers in the same language.
license: Apache-2.0
skip_upload: auto
release_notes: "{{.Changelog}}"
release_notes_url: "https://github.com/{{ .Env.GITHUB_REPOSITORY_OWNER }}/xgo/releases/tag/v{{.Version}}"
dependencies:
- package_identifier: GoLang.Go
minimum_version: 1.18.0
repository:
owner: goplus
name: winget-pkgs
branch: "{{.ProjectName}}-v{{.Version}}"
git:
url: "git@github.com:{{ .Env.GITHUB_REPOSITORY_OWNER }}/winget-pkgs.git"
private_key: "{{ .Env.WINGET_PKGS_PRIVATE_KEY }}"
pull_request:
enabled: true
draft: true
base:
owner: microsoft
name: winget-pkgs
branch: master
nfpms:
- package_name: xgo
vendor: goplus
homepage: https://xgo.dev/
maintainer: Li Jie <cpunion@gmail.com>
license: Apache-2.0
description: |
The XGo programming language is designed for engineering, STEM education, and data science.
- For engineering: working in the simplest language that can be mastered by children.
- For STEM education: studying an engineering language that can be used for work in the future.
- For data science: communicating with engineers in the same language.
formats:
- "deb"
- "rpm"
overrides:
deb:
dependencies:
- "golang-go (>= 1.18.0)"
rpm:
dependencies:
- "golang-bin >= 1.18.0"
file_name_template: >-
{{ .ProjectName }}{{.Version}}.{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
bindir: /usr/lib/{{ .ProjectName }}
contents:
# source folder
- src: "CLAUDE.md"
dst: "/usr/lib/{{ .ProjectName }}/CLAUDE.md"
- src: "CODE_OF_CONDUCT.md"
dst: "/usr/lib/{{ .ProjectName }}/CODE_OF_CONDUCT.md"
- src: "Dockerfile"
dst: "/usr/lib/{{ .ProjectName }}/Dockerfile"
- src: "LICENSE"
dst: "/usr/lib/{{ .ProjectName }}/LICENSE"
- src: "Makefile"
dst: "/usr/lib/{{ .ProjectName }}/Makefile"
- src: "README.md"
dst: "/usr/lib/{{ .ProjectName }}/README.md"
- src: "all.bash"
dst: "/usr/lib/{{ .ProjectName }}/all.bash"
- src: "all.bat"
dst: "/usr/lib/{{ .ProjectName }}/all.bat"
- src: "ast"
dst: "/usr/lib/{{ .ProjectName }}/ast"
- src: "tpl"
dst: "/usr/lib/{{ .ProjectName }}/tpl"
- src: "dql"
dst: "/usr/lib/{{ .ProjectName }}/dql"
- src: "tool"
dst: "/usr/lib/{{ .ProjectName }}/tool"
- src: "builtin"
dst: "/usr/lib/{{ .ProjectName }}/builtin"
- src: "cl"
dst: "/usr/lib/{{ .ProjectName }}/cl"
- src: "cmd"
dst: "/usr/lib/{{ .ProjectName }}/cmd"
- src: "doc"
dst: "/usr/lib/{{ .ProjectName }}/doc"
- src: "encoding"
dst: "/usr/lib/{{ .ProjectName }}/encoding"
- src: "env"
dst: "/usr/lib/{{ .ProjectName }}/env"
- src: "format"
dst: "/usr/lib/{{ .ProjectName }}/format"
- src: "go.mod"
dst: "/usr/lib/{{ .ProjectName }}/go.mod"
- src: "go.sum"
dst: "/usr/lib/{{ .ProjectName }}/go.sum"
- src: "make.bash"
dst: "/usr/lib/{{ .ProjectName }}/make.bash"
- src: "make.bat"
dst: "/usr/lib/{{ .ProjectName }}/make.bat"
- src: "parser"
dst: "/usr/lib/{{ .ProjectName }}/parser"
- src: "printer"
dst: "/usr/lib/{{ .ProjectName }}/printer"
- src: "scanner"
dst: "/usr/lib/{{ .ProjectName }}/scanner"
- src: "test"
dst: "/usr/lib/{{ .ProjectName }}/test"
- src: "demo"
dst: "/usr/lib/{{ .ProjectName }}/demo"
- src: "token"
dst: "/usr/lib/{{ .ProjectName }}/token"
- src: "x"
dst: "/usr/lib/{{ .ProjectName }}/x"
# symlinks to binaries
- src: "/usr/lib/{{ .ProjectName }}/bin/xgo"
dst: /usr/bin/xgo
type: symlink
- src: "/usr/lib/{{ .ProjectName }}/bin/xgo"
dst: /usr/bin/gop
type: symlink
snapcrafts:
- id: xgo
name: xgo
title: The XGo Programming Language
summary: The XGo Programming Language
description: |
The XGo programming language is designed for engineering, STEM education, and data science.
- For engineering: working in the simplest language that can be mastered by children.
- For STEM education: studying an engineering language that can be used for work in the future.
- For data science: communicating with engineers in the same language.
confinement: classic
license: Apache-2.0
name_template: >-
{{ .ProjectName }}{{.Version}}.{{ .Os }}-{{ .Arch }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
extra_files:
# source folder
- source: "CLAUDE.md"
destination: "CLAUDE.md"
- source: "CODE_OF_CONDUCT.md"
destination: "CODE_OF_CONDUCT.md"
- source: "Dockerfile"
destination: "Dockerfile"
- source: "LICENSE"
destination: "LICENSE"
- source: "Makefile"
destination: "Makefile"
- source: "README.md"
destination: "README.md"
- source: "all.bash"
destination: "all.bash"
- source: "all.bat"
destination: "all.bat"
- source: "ast"
destination: "ast"
- source: "tpl"
destination: "tpl"
- source: "dql"
destination: "dql"
- source: "tool"
destination: "tool"
- source: "builtin"
destination: "builtin"
- source: "cl"
destination: "cl"
- source: "cmd"
destination: "cmd"
- source: "doc"
destination: "doc"
- source: "encoding"
destination: "encoding"
- source: "env"
destination: "env"
- source: "format"
destination: "format"
- source: "go.mod"
destination: "go.mod"
- source: "go.sum"
destination: "go.sum"
- source: "make.bash"
destination: "make.bash"
- source: "make.bat"
destination: "make.bat"
- source: "parser"
destination: "parser"
- source: "printer"
destination: "printer"
- source: "scanner"
destination: "scanner"
- source: "test"
destination: "test"
- source: "demo"
destination: "demo"
- source: "token"
destination: "token"
- source: "x"
destination: "x"
apps:
xgo:
command: "xgo"
aliases: ["xgo", "gop"]
environment:
XGOROOT: "$SNAP"
checksum:
name_template: "{{ .ProjectName }}{{ .Version }}.checksums.txt"
release:
prerelease: auto