forked from go-musicfox/go-musicfox
-
Notifications
You must be signed in to change notification settings - Fork 0
/
.goreleaser.yaml
98 lines (96 loc) · 2.3 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
env:
- GO111MODULE=on
- CGO_ENABLED=1
- HOMEBREW_NAME=go-musicfox
builds:
- id: go-musicfox-linux-amd64
binary: musicfox
hooks:
pre:
- apt update
- apt install -y libasound2-dev
env:
- CC=x86_64-linux-gnu-gcc
- CXX=x86_64-linux-gnu-g++
goarch:
- amd64
goos:
- linux
# - id: go-musicfox-linux-arm64
# binary: musicfox
# hooks:
# pre:
# - apt update
# - apt install -y libasound2-dev
# goarch:
# - arm64
# goos:
# - linux
# env:
# - CC=aarch64-linux-gnu-gcc
# - CXX=aarch64-linux-gnu-g++
- id: go-musicfox-windows-amd64
binary: musicfox
goarch:
- amd64
goos:
- windows
env:
- CC=x86_64-w64-mingw32-gcc
- CXX=x86_64-w64-mingw32-g++
- id: go-musicfox-darwin-arm64
binary: musicfox
goarch:
- arm64
goos:
- darwin
env:
- CC=oa64-clang
- CXX=oa64-clang++
- id: go-musicfox-darwin-amd64
binary: musicfox
goarch:
- amd64
goos:
- darwin
env:
- CC=o64-clang
- CXX=o64-clang++
archives:
- id: musicfox
builds:
- go-musicfox-linux-amd64
# - go-musicfox-linux-arm64
- go-musicfox-windows-amd64
- go-musicfox-darwin-amd64
- go-musicfox-darwin-arm64
name_template: "{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}"
wrap_in_directory: true
format: zip
files:
- none*
brews:
- name: "{{ .Env.HOMEBREW_NAME }}"
tap:
owner: anhoder
name: homebrew-go-musicfox
token: {{secrets.HOMEBREW_TAP_TOKEN}}
url_template: "https://github.com/anhoder/go-musicfox/releases/{{ .Tag }}/{{ .ArtifactName }}"
homepage: "https://github.com/anhoder/go-musicfox"
description: "go-musicfox是musicfox的重写版,使用Go编写的网易云音乐命令行程序。"
commit_author:
name: anhoder
email: anhoder@88.com
commit_msg_template: "Brew formula update for {{ .ProjectName }} version {{ .Tag }}"
dependencies:
- terminal-notifier
install: |
system 'echo', '-e', "\033[1;33m给个star✨吧~\033[0m \033[4;36mhttps://github.com/anhoder/go-musicfox \033[0m"
bin.install 'musicfox'
release:
github:
owner: anhoder
name: go-musicfox
prerelease: auto
mode: replace
draft: false