Skip to content

Commit 7306500

Browse files
author
Taranveer Bains
committed
experiment: add new outputs for go-releaser
1 parent 606253d commit 7306500

File tree

2 files changed

+89
-22
lines changed

2 files changed

+89
-22
lines changed

.goreleaser-rc.yaml

Lines changed: 50 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,31 +1,55 @@
11
builds:
2-
- id: darwin-amd64
2+
- id: darwin-amd64-chatgpt-tui
33
main: ./
44
goos:
55
- darwin
66
goarch:
77
- amd64
88
- arm64
9-
109
env:
11-
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
12-
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
13-
- CC=o64-clang
14-
- CXX=o64-clang++
10+
- pkg_config_sysroot_dir=/sysroot/macos/amd64
11+
- pkg_config_path=/sysroot/macos/amd64/usr/local/lib/pkgconfig
12+
- cc=o64-clang
13+
- cxx=o64-clang++
1514
flags:
1615
- -mod=readonly
1716
ldflags:
18-
- -s -w -X main.version={{.Version}}
19-
# Use 'binary' to set the final name of your binary.
20-
# This is the name that will be used in archives et al.
17+
- -s -w -x main.version={{.version}}
2118
binary: bin/rc-chatgpt-tui
19+
20+
- id: darwin-amd64-nekot
21+
main: ./
22+
goos:
23+
- darwin
24+
goarch:
25+
- amd64
26+
- arm64
27+
env:
28+
- pkg_config_sysroot_dir=/sysroot/macos/amd64
29+
- pkg_config_path=/sysroot/macos/amd64/usr/local/lib/pkgconfig
30+
- cc=o64-clang
31+
- cxx=o64-clang++
32+
flags:
33+
- -mod=readonly
34+
ldflags:
35+
- -s -w -x main.version={{.version}}
36+
binary: bin/rc-nekot
37+
2238
archives:
39+
- id: rc-nekot
40+
builds:
41+
- darwin-amd64
42+
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
43+
format: zip
44+
wrap_in_directory: true
45+
2346
- id: rc-chatgpt-tui
2447
builds:
2548
- darwin-amd64
2649
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
2750
format: zip
2851
wrap_in_directory: true
52+
2953
checksum:
3054
name_template: "checksums.txt"
3155
snapshot:
@@ -42,6 +66,23 @@ release:
4266
draft: false
4367

4468
brews:
69+
- name: rc-nekot
70+
tap:
71+
owner: tearingItUp786
72+
name: homebrew-tearingitup786
73+
homepage: https://github.com/tearingItUp786/chatgpt-tui
74+
commit_author:
75+
name: tearingitup786
76+
77+
# Setting this will prevent goreleaser to actually try to commit the updated
78+
# formula - instead, the formula file will be stored on the dist folder only,
79+
# leaving the responsibility of publishing it to the user.
80+
# If set to auto, the release will not be uploaded to the homebrew tap
81+
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
82+
#
83+
# Templates: allowed
84+
skip_upload: false
85+
4586
- name: rc-chatgpt-tui
4687
tap:
4788
owner: tearingItUp786

.goreleaser.yaml

Lines changed: 39 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
builds:
2-
- id: darwin-amd64
2+
- id: darwin-amd64-chatgpt-tui
33
main: ./
44
goos:
55
- darwin
66
goarch:
77
- amd64
88
- arm64
9-
109
env:
1110
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
1211
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
@@ -16,16 +15,42 @@ builds:
1615
- -mod=readonly
1716
ldflags:
1817
- -s -w -X main.version={{.Version}}
19-
# Use 'binary' to set the final name of your binary.
20-
# This is the name that will be used in archives et al.
2118
binary: bin/chatgpt-tui
19+
20+
- id: darwin-amd64-nekot
21+
main: ./
22+
goos:
23+
- darwin
24+
goarch:
25+
- amd64
26+
- arm64
27+
env:
28+
- PKG_CONFIG_SYSROOT_DIR=/sysroot/macos/amd64
29+
- PKG_CONFIG_PATH=/sysroot/macos/amd64/usr/local/lib/pkgconfig
30+
- CC=o64-clang
31+
- CXX=o64-clang++
32+
flags:
33+
- -mod=readonly
34+
ldflags:
35+
- -s -w -X main.version={{.Version}}
36+
binary: bin/nekot
37+
2238
archives:
2339
- id: chatgpt-tui
2440
builds:
25-
- darwin-amd64
41+
- darwin-amd64-chatgpt-tui
2642
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
2743
format: zip
2844
wrap_in_directory: true
45+
46+
- id: nekot
47+
builds:
48+
- darwin-amd64-nekot
49+
name_template: "nekot_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
50+
format: zip
51+
wrap_in_directory: true
52+
53+
# The rest of the configuration remains unchanged
2954
checksum:
3055
name_template: "checksums.txt"
3156
snapshot:
@@ -42,19 +67,20 @@ release:
4267
draft: false
4368

4469
brews:
45-
- name: chatgpt-tui
70+
- name: nekot
4671
tap:
4772
owner: tearingItUp786
4873
name: homebrew-tearingitup786
4974
homepage: https://github.com/tearingItUp786/chatgpt-tui
5075
commit_author:
5176
name: tearingitup786
77+
skip_upload: auto
5278

53-
# Setting this will prevent goreleaser to actually try to commit the updated
54-
# formula - instead, the formula file will be stored on the dist folder only,
55-
# leaving the responsibility of publishing it to the user.
56-
# If set to auto, the release will not be uploaded to the homebrew tap
57-
# in case there is an indicator for prerelease in the tag e.g. v1.0.0-rc1
58-
#
59-
# Templates: allowed
79+
- name: chatgpt-tui
80+
tap:
81+
owner: tearingItUp786
82+
name: homebrew-tearingitup786
83+
homepage: https://github.com/tearingItUp786/chatgpt-tui
84+
commit_author:
85+
name: tearingitup786
6086
skip_upload: auto

0 commit comments

Comments
 (0)