forked from goplus/gop
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path.goreleaser.yaml
261 lines (252 loc) · 7.5 KB
/
.goreleaser.yaml
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
# The lines below are called `modelines`. See `:help modeline`
# Feel free to remove those if you don't want/need to use them.
# yaml-language-server: $schema=https://goreleaser.com/static/schema.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 1
before:
hooks:
# You may remove this if you don't use go modules.
- go mod tidy
# you may remove this if you don't need go generate
# - go generate ./...
builds:
- id: gop
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/gop
binary: bin/gop
ldflags:
- -X github.com/goplus/gop/env.buildVersion=v{{.Version}}
- -X github.com/goplus/gop/env.buildDate={{.Date}}
- id: gopfmt
env:
- CGO_ENABLED=0
goos:
- linux
- windows
- darwin
main: ./cmd/gopfmt
binary: bin/gopfmt
ldflags:
- -X github.com/goplus/gop/env.buildVersion=v{{.Version}}
- -X github.com/goplus/gop/env.buildDate={{.Date}}
archives:
- format: tar.gz
# this name template makes the OS and Arch compatible with the results of `uname`.
name_template: >-
{{ .ProjectName }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
# use zip for windows archives
format_overrides:
- goos: windows
format: zip
files:
- LICENSE
- "*.mod"
- "*.sum"
- "*.md"
- "**/*.go"
- "**/*.md"
changelog:
sort: asc
filters:
exclude:
- "^docs:"
- "^test:"
winget:
- name: goplus
homepage: "https://goplus.org/"
publisher: goplus
publisher_url: https://github.com/goplus/gop
publisher_support_url: "https://github.com/goplus/gop/issues/new"
package_identifier: goplus.gop
path: "manifests/g/goplus/gop/{{.Version}}"
tags:
- golang
- go
- gop
- goplus
- programming
- language
- compiler
- interpreter
- data science
- engineering
- education
short_description: The Go+ Programming Language
description: |
The Go+ 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: false
release_notes: "{{.Changelog}}"
release_notes_url: "https://github.com/goplus/gop/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: "[email protected]:goplus/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: gop
vendor: goplus
homepage: https://goplus.org/
maintainer: Li Jie <[email protected]>
license: Apache-2.0
description: |
The Go+ 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 }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
bindir: /usr/lib/{{ .ProjectName }}
contents:
# source folder
- src: LICENSE
dst: /usr/lib/{{ .ProjectName }}/LICENSE
- src: "README.md"
dst: /usr/lib/{{ .ProjectName }}/README.md
- src: "go.mod"
dst: /usr/lib/{{ .ProjectName }}/go.mod
- src: "go.sum"
dst: /usr/lib/{{ .ProjectName }}/go.sum
- src: "*.go"
dst: /usr/lib/{{ .ProjectName }}/
- src: ast
dst: /usr/lib/{{ .ProjectName }}/ast
- 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: env
dst: /usr/lib/{{ .ProjectName }}/env
- src: format
dst: /usr/lib/{{ .ProjectName }}/format
- src: parser
dst: /usr/lib/{{ .ProjectName }}/parser
- src: printer
dst: /usr/lib/{{ .ProjectName }}/parser
- src: scanner
dst: /usr/lib/{{ .ProjectName }}/scanner
- src: token
dst: /usr/lib/{{ .ProjectName }}/token
- src: watcher
dst: /usr/lib/{{ .ProjectName }}/watcher
- src: "x"
dst: /usr/lib/{{ .ProjectName }}/x
# symlinks to binaries
- src: "/usr/lib/{{ .ProjectName }}/bin/gop"
dst: /usr/bin/gop
type: symlink
- src: "/usr/lib/{{ .ProjectName }}/bin/gopfmt"
dst: /usr/bin/gopfmt
type: symlink
snapcrafts:
- id: gop
name: gop
title: The Go+ Programming Language
summary: The Go+ Programming Language
description: |
The Go+ 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 }}_v{{.Version}}_
{{- title .Os }}_
{{- if eq .Arch "amd64" }}x86_64
{{- else if eq .Arch "386" }}i386
{{- else }}{{ .Arch }}{{ end }}
{{- if .Arm }}v{{ .Arm }}{{ end }}
extra_files:
# source folder
- source: LICENSE
destination: LICENSE
- source: "README.md"
destination: README.md
- source: "go.mod"
destination: go.mod
- source: "go.sum"
destination: go.sum
- source: ast
destination: ast
- source: builtin
destination: builtin
- source: cl
destination: cl
- source: cmd
destination: cmd
- source: doc
destination: doc
- source: env
destination: env
- source: format
destination: format
- source: parser
destination: parser
- source: printer
destination: parser
- source: scanner
destination: scanner
- source: token
destination: token
- source: watcher
destination: watcher
- source: "x"
destination: x
apps:
gop:
command: "gop"
aliases: ["gop"]
environment:
GOPROOT: "$SNAP"
gopfmt:
command: "gopfmt"
aliases: ["gopfmt"]
environment:
GOPROOT: "$SNAP"
checksum:
name_template: "{{ .ProjectName }}_v{{ .Version }}_checksums.txt"