This repository has been archived by the owner on Dec 15, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy path.goreleaser.yaml
186 lines (183 loc) · 7.56 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
env:
- GO111MODULE=on
- CGO_ENABLED=1
- HOMEBREW_NAME=spotifox
builds:
- id: spotifox-linux-amd64
main: ./cmd/spotifox.go
binary: spotifox
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
- CFLAGS=-I/usr/x86_64-linux-gnu/include:$CFLAGS
- CPPFLAGS=-I/usr/x86_64-linux-gnu/include:$CPPFLAGS
- LDFLAGS=-L/usr/x86_64-linux-gnu/lib:$LDFLAGS
- PKG_CONFIG_PATH=/usr/x86_64-linux-gnu/lib/pkgconfig:$PKG_CONFIG_PATH
goarch:
- amd64
goos:
- linux
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
- id: spotifox-linux-arm64
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- arm64
goos:
- linux
env:
- CC=aarch64-linux-gnu-gcc
- CXX=aarch64-linux-gnu-g++
- CFLAGS=-I/usr/aarch64-linux-gnu/include:$CFLAGS
- CPPFLAGS=-I/usr/aarch64-linux-gnu/include:$CPPFLAGS
- LDFLAGS=-L/usr/aarch64-linux-gnu/lib:$LDFLAGS
- PKG_CONFIG_PATH=/usr/aarch64-linux-gnu/lib/pkgconfig:$PKG_CONFIG_PATH
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
- id: spotifox-linux-arm
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- arm
goos:
- linux
env:
- CC=arm-linux-gnueabi-gcc
- CXX=arm-linux-gnueabi-g++
- CFLAGS=-I/usr/arm-linux-gnueabi/include:$CFLAGS
- CPPFLAGS=-I/usr/arm-linux-gnueabi/include:$CPPFLAGS
- LDFLAGS=-L/usr/arm-linux-gnueabi/lib:$LDFLAGS
- PKG_CONFIG_PATH=/usr/arm-linux-gnueabi/lib/pkgconfig:$PKG_CONFIG_PATH
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
- id: spotifox-windows-amd64
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- amd64
goos:
- windows
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
env:
- CC=/usr/local/mingw/bin/x86_64-w64-mingw32-gcc
- CXX=/usr/local/mingw/bin/x86_64-w64-mingw32-g++
- CFLAGS=-I/usr/local/mingw/x86_64-w64-mingw32/include:$CFLAGS
- CPPFLAGS=-I/usr/local/mingw/x86_64-w64-mingw32/include:$CPPFLAGS
- LDFLAGS=-L/usr/local/mingw/x86_64-w64-mingw32/lib:$LDFLAGS
- id: spotifox-windows-arm64
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- arm64
goos:
- windows
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
env:
- CC=/usr/local/mingw/bin/aarch64-w64-mingw32-gcc
- CXX=/usr/local/mingw/bin/aarch64-w64-mingw32-g++
- CFLAGS=-I/usr/local/mingw/aarch64-w64-mingw32/include:$CFLAGS
- CPPFLAGS=-I/usr/local/mingw/aarch64-w64-mingw32/include:$CPPFLAGS
- LDFLAGS=-L/usr/local/mingw/aarch64-w64-mingw32/lib:$LDFLAGS
- id: spotifox-darwin-arm64
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- arm64
goos:
- darwin
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
env:
- CC=oa64-clang
- CXX=oa64-clang++
- id: spotifox-darwin-amd64
main: ./cmd/spotifox.go
binary: spotifox
goarch:
- amd64
goos:
- darwin
ldflags:
- -s -w -X github.com/go-musicfox/spotifox/internal/types.AppVersion={{.Tag}} -X github.com/go-musicfox/spotifox/internal/types.LastfmKey={{.Env.LASTFM_KEY}} -X github.com/go-musicfox/spotifox/internal/types.LastfmSecret={{.Env.LASTFM_SECRET}} -X github.com/go-musicfox/spotifox/internal/types.SpotifyClientId={{.Env.SPOTIFY_CLIENT_ID}}
env:
- CC=o64-clang
- CXX=o64-clang++
archives:
- id: spotifox
builds:
- spotifox-linux-amd64
- spotifox-linux-arm64
- spotifox-linux-arm
- spotifox-windows-amd64
- spotifox-windows-arm64
- spotifox-darwin-amd64
- spotifox-darwin-arm64
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
format: zip
files:
- none*
brews:
- name: "{{ .Env.HOMEBREW_NAME }}"
repository:
owner: go-musicfox
name: homebrew-go-musicfox
token: "{{ .Env.HOMEBREW_TAP_TOKEN }}"
url_template: "https://github.com/go-musicfox/spotifox/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/go-musicfox/spotifox"
description: "Spotifox is yet another spotify CLI client."
commit_author:
name: anhoder
email: [email protected]
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
dependencies:
- name: terminal-notifier
type: optional
install: |
system 'echo', '-e', "\033[1;33mStar✨ Please~\033[0m \033[4;36mhttps://github.com/go-musicfox/spotifox \033[0m"
bin.install 'spotifox'
# winget:
# - name: spotifox
# publisher: go-musicfox
# short_description: "Spotifox is yet another spotify CLI client."
# license: "MIT"
# publisher_url: https://github.com/go-musicfox/spotifox
# publisher_support_url: "https://github.com/go-musicfox/spotifox/issues/new"
# package_identifier: go-musicfox.spotifox
# url_template: "https://github.com/go-musicfox/spotifox/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
# commit_author:
# name: anhoder
# email: [email protected]
# commit_msg_template: "{{ .PackageIdentifier }}: {{ .Tag }}"
# homepage: "https://github.com/go-musicfox/spotifox"
# description: "Spotifox is yet another spotify CLI client."
# skip_upload: auto
# release_notes: "{{.Changelog}}"
# tags:
# - golang
# - cli
# - netease music
# - spotifox
# repository:
# owner: go-musicfox
# name: winget-pkgs
# branch: "{{.ProjectName}}-{{.Version}}"
# token: "{{ .Env.GITHUB_TOKEN }}"
# # pull_request:
# # enabled: true
# # draft: true
# # base:
# # owner: microsoft
# # name: winget-pkgs
# # branch: master
release:
github:
owner: go-musicfox
name: spotifox
discussion_category_name: General
prerelease: auto
mode: replace
draft: false