-
-
Notifications
You must be signed in to change notification settings - Fork 159
/
Copy path.goreleaser.yaml
294 lines (268 loc) · 8.81 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
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
# 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-pro.json
# vim: set ts=2 sw=2 tw=0 fo=cnqoj
version: 2
partial:
by: goos
report_sizes: true
env:
- RUSTFLAGS=-C link-arg=-s
- CARGO_TERM_COLOR=always
- RUST_BACKTRACE=full
before:
hooks:
- if: '{{ ne .Runtime.Goos "windows" }}'
cmd: tic -xe rio -o misc misc/rio.terminfo
output: true
- if: '{{ eq .Runtime.Goos "windows" }}'
cmd: dotnet tool install --global wix --version 5.0.2
output: true
- if: '{{ eq .Runtime.Goos "windows" }}'
cmd: wix extension add -g WixToolset.UI.wixext/5.0.2 WixToolset.Util.wixext/5.0.2
output: true
builds:
- id: windows-x86_64
builder: rust
command: build
flags: [--release, -p=rioterm]
targets: [x86_64-pc-windows-msvc]
- id: windows-arm64
builder: rust
command: build
flags: [--release, -p=rioterm]
targets: [aarch64-pc-windows-msvc]
- id: macos
builder: rust
command: build
flags: [--release, -p=rioterm]
env:
- MACOSX_DEPLOYMENT_TARGET={{ if eq .Arch "amd64" }}10.15{{ else }}11.0{{ end }}
targets: [x86_64-apple-darwin, aarch64-apple-darwin]
- id: linux-arm64-wayland
builder: rust
command: build
flags: [--release, -p=rioterm, --no-default-features, --features=wayland]
targets: [aarch64-unknown-linux-gnu]
- id: linux-arm64-x11
builder: rust
command: build
flags: [--release, -p=rioterm, --no-default-features, --features=x11]
targets: [aarch64-unknown-linux-gnu]
- id: linux-x64-wayland
builder: rust
command: build
flags: [--release, -p=rioterm, --no-default-features, --features=wayland]
targets: [x86_64-unknown-linux-gnu]
- id: linux-x64-x11
builder: rust
command: build
flags: [--release, -p=rioterm, --no-default-features, --features=x11]
targets: [x86_64-unknown-linux-gnu]
release:
make_latest: "{{ if .IsNightly }}false{{ else }}true{{ end }}"
mode: append
prerelease: auto
use_existing_draft: false
replace_existing_draft: false
replace_existing_artifacts: true
include_meta: false
footer: >-
---
Released by [GoReleaser](https://github.com/goreleaser/goreleaser).
nightly:
version_template: "{{ incminor .Version }}-nightly"
tag_name: nightly
publish_release: true
keep_single_release: true
changelog:
use: git
checksum:
name_template: checksums.txt
archives:
- id: win-x64
formats: [binary]
ids: [windows-x86_64]
name_template: "{{ .ProjectName }}-portable-x86_64"
- id: win-arm64
formats: [binary]
ids: [windows-arm64]
name_template: "{{ .ProjectName }}-portable-aarch64"
universal_binaries:
- ids: [macos]
replace: true
dmg:
- name: "{{ .ProjectName }}"
use: appbundle
notarize:
macos_native:
- enabled: '{{ isEnvSet "MACOS_SIGN_P12" }}'
sign:
identity: "Developer ID Application: Hugo Amorim"
keychain: "{{ .Env.KEYCHAIN_PATH }}"
options: [runtime]
notarize:
wait: true
profile_name: "{{ .Env.MACOS_NOTARY_KEYCHAIN_PROFILE }}"
app_bundles:
- icon: ./misc/osx/Rio.app/Contents/Resources/icon.icns
bundle: com.raphaelamorim.rio
extra_files:
- src: ./misc/72/rio
dst: Contents/Resources/72/rio
# releases made before goreleaser integration included the classic icon
- src: ./misc/osx/Rio.app/Contents/Resources/icon-classic.icns
dst: Contents/Resources/icon-classic.icns
templated_extra_files:
- src: ./misc/osx/Rio.app/Contents/Info.plist
dst: Contents/Info.plist
nfpms:
- formats: [deb, rpm]
id: deb-arm64-wayland
ids: [linux-arm64-wayland]
file_name_template: "{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}_wayland"
package_name: rioterm
dependencies: [libc6 (>= 2.35), libstdc++6 (>= 11)]
overrides:
rpm:
dependencies: [glibc, libstdc++]
contents:
- src: ./misc/rio.desktop
dst: /usr/share/applications/rio.desktop
- src: ./misc/r/rio
dst: /usr/share/terminfo/r/rio
- src: ./misc/logo.svg
dst: /usr/share/icons/hicolor/scalable/apps/rio.svg
section: admin
priority: optional
- formats: [deb, rpm]
id: deb-arm64-x11
ids: [linux-arm64-x11]
file_name_template: "{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}_x11"
package_name: rioterm
dependencies: [libc6 (>= 2.35), libstdc++6 (>= 11)]
overrides:
rpm:
dependencies: [glibc, libstdc++]
contents:
- src: ./misc/rio.desktop
dst: /usr/share/applications/rio.desktop
- src: ./misc/r/rio
dst: /usr/share/terminfo/r/rio
- src: ./misc/logo.svg
dst: /usr/share/icons/hicolor/scalable/apps/rio.svg
section: admin
priority: optional
- formats: [deb, rpm]
id: deb-x64-wayland
ids: [linux-x64-wayland]
file_name_template: "{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}_wayland"
package_name: rioterm
dependencies: [libc6 (>= 2.35), libstdc++6 (>= 11)]
overrides:
rpm:
dependencies: [glibc, libstdc++]
contents:
- src: ./misc/rio.desktop
dst: /usr/share/applications/rio.desktop
- src: ./misc/r/rio
dst: /usr/share/terminfo/r/rio
- src: ./misc/logo.svg
dst: /usr/share/icons/hicolor/scalable/apps/rio.svg
section: admin
priority: optional
- formats: [deb, rpm]
id: deb-x64-x11
ids: [linux-x64-x11]
file_name_template: "{{- trimsuffix .ConventionalFileName .ConventionalExtension -}}_x11"
package_name: rioterm
dependencies: [libc6 (>= 2.35), libstdc++6 (>= 11)]
overrides:
rpm:
dependencies: [glibc, libstdc++]
contents:
- src: ./misc/rio.desktop
dst: /usr/share/applications/rio.desktop
- src: ./misc/r/rio
dst: /usr/share/terminfo/r/rio
- src: ./misc/logo.svg
dst: /usr/share/icons/hicolor/scalable/apps/rio.svg
section: admin
priority: optional
msi:
- id: win-x64
name: "{{ .ProjectName }}-installer-x86_64"
wxs: ./misc/windows/rio.wxs
ids: [windows-x86_64]
extensions: [WixToolset.UI.wixext, WixToolset.Util.wixext]
extra_files: [./misc/windows/rio.ico, ./misc/windows/License.rtf]
- id: win-arm64
name: "{{ .ProjectName }}-installer-aarch64"
wxs: ./misc/windows/rio.wxs
ids: [windows-arm64]
extensions: [WixToolset.UI.wixext, WixToolset.Util.wixext]
extra_files: [./misc/windows/rio.ico, ./misc/windows/License.rtf]
winget:
- use: msi
name: Rio
package_identifier: raphamorim.rio
author: Raphael Amorim
release_notes: "{{ .Changelog }}"
release_notes_url: https://github.com/raphamorim/rio/releases/tag/{{ .Tag }}
publisher: Raphael Amorim
publisher_url: https://raphamorim.io
publisher_support_url: https://github.com/raphamorim/rio/issues
license_url: https://raw.githubusercontent.com/raphamorim/rio/main/LICENSE
copyright: Copyright (c) {{ .Now.Format "2006" }} Raphael Amorim
copyright_url: https://raw.githubusercontent.com/raphamorim/rio/main/LICENSE
tags: [cross-platform, terminal, terminal-emulators]
commit_msg_template: "New version: raphamorim.rio {{ .Tag }}"
commit_author:
name: raphamorim
email: 3630346+raphamorim@users.noreply.github.com
repository:
owner: raphamorim
name: winget-pkgs
branch: rio-{{ .Tag }}-{{ .Now.Format "20060102150405"}}
pull_request:
enabled: true
base:
owner: microsoft
name: winget-pkgs
branch: master
draft: false
after:
hooks:
- cmd: brew bump-cask-pr rio --version {{ .Version }}
if: "{{ and .IsRelease .IsMerging }}"
env: ["HOMEBREW_GITHUB_API_TOKEN={{ .Env.GITHUB_TOKEN }}"]
output: true
- cmd: cargo publish -p rio-window
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p sugarloaf
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p rio-proc-macros
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p copa
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p corcovado
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p teletypewriter
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p rio-backend
if: "{{ and .IsRelease .IsMerging }}"
output: true
- cmd: cargo publish -p rioterm
if: "{{ and .IsRelease .IsMerging }}"
output: true
metadata:
maintainers: [Raphael Amorim <rapha850 at gmail dot com>]
license: MIT
description: A hardware-accelerated GPU terminal emulator focusing to run in desktops and browsers.
homepage: https://rioterm.com