Skip to content

Commit 7528145

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

File tree

2 files changed

+97
-22
lines changed

2 files changed

+97
-22
lines changed

.goreleaser-rc.yaml

Lines changed: 54 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,7 +66,28 @@ release:
4266
draft: false
4367

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

.goreleaser.yaml

Lines changed: 43 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,24 @@ release:
4267
draft: false
4368

4469
brews:
45-
- name: chatgpt-tui
70+
- name: nekot
71+
ids:
72+
- nekot
4673
tap:
4774
owner: tearingItUp786
4875
name: homebrew-tearingitup786
4976
homepage: https://github.com/tearingItUp786/chatgpt-tui
5077
commit_author:
5178
name: tearingitup786
79+
skip_upload: auto
5280

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
81+
- name: chatgpt-tui
82+
ids:
83+
- chatgpt-tui
84+
tap:
85+
owner: tearingItUp786
86+
name: homebrew-tearingitup786
87+
homepage: https://github.com/tearingItUp786/chatgpt-tui
88+
commit_author:
89+
name: tearingitup786
6090
skip_upload: auto

0 commit comments

Comments
 (0)