Skip to content

Commit c657ffc

Browse files
committed
Merge branch 'master' into feature/v3.8.0
2 parents 0ec707e + ba0d7e3 commit c657ffc

File tree

233 files changed

+13198
-3560
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

233 files changed

+13198
-3560
lines changed

.github/workflows/release.yaml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828

2929
- name: branch name
3030
id: branch_name
31-
run: |
31+
run: |-
3232
echo "RELEASE_TAG=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
3333
3434
- name: setup release environment
@@ -37,11 +37,14 @@ jobs:
3737
3838
- if: github.ref == 'refs/heads/master' || startsWith(github.ref,'refs/heads/feature/')
3939
name: release dry-run GORELEASER_SKIP_VALIDATE=true
40-
run: make release-dry-run GORELEASER_SKIP_VALIDATE=true
40+
run: |-
41+
make release-dry-run GORELEASER_SKIP_VALIDATE=true
42+
make scoop-config-gen
4143
4244
- if: startsWith(github.ref,'refs/tags/v')
4345
name: release dry-run
44-
run: make release-dry-run
46+
run: |-
47+
make release-dry-run
4548
env:
4649
RELEASE_TAG: ${{ steps.branch_name.outputs.RELEASE_TAG }}
4750

@@ -52,3 +55,19 @@ jobs:
5255
make release
5356
env:
5457
RELEASE_TAG: ${{ steps.branch_name.outputs.RELEASE_TAG }}
58+
59+
- if: startsWith(github.ref,'refs/tags/v') && github.repository == 'go-musicfox/go-musicfox'
60+
name: Generate scoop config and commit
61+
run: |-
62+
make scoop-config-gen
63+
git config --global user.email "anhoder@88.com"
64+
git config --global user.name "anhoder"
65+
git add .
66+
git commit -m "feat: update scoop config" || true
67+
68+
- if: startsWith(github.ref,'refs/tags/v') && github.repository == 'go-musicfox/go-musicfox'
69+
name: Push scoop config
70+
uses: ad-m/github-push-action@master
71+
with:
72+
github_token: ${{secrets.ACCESS_TOKEN}}
73+
branch: master

.goreleaser.yaml

Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -102,24 +102,24 @@ brews:
102102
system 'echo', '-e', "\033[1;33m给个star✨吧~\033[0m \033[4;36mhttps://github.com/go-musicfox/go-musicfox \033[0m"
103103
bin.install 'musicfox'
104104
105-
106-
scoop:
107-
url_template: "https://github.com/go-musicfox/go-musicfox/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
108-
bucket:
109-
owner: go-musicfox
110-
name: go-musicfox
111-
folder: deploy/scoop
112-
113-
commit_author:
114-
name: anhoder
115-
email: anhoder@88.com
116-
117-
commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
118-
homepage: "https://github.com/go-musicfox/go-musicfox"
119-
description: "go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持UnblockNeteaseMusic、各种音质级别、lastfm、MPRIS..."
120-
license: MIT
121-
122-
post_install: ["Write-Host '好用记得给go-musicfox一个star✨哦~'"]
105+
# goreleaser支持的配置不多,暂时不用
106+
#scoop:
107+
# url_template: "https://github.com/go-musicfox/go-musicfox/releases/download/{{ .Tag }}/{{ .ArtifactName }}"
108+
# bucket:
109+
# owner: go-musicfox
110+
# name: go-musicfox
111+
# folder: deploy/scoop
112+
#
113+
# commit_author:
114+
# name: anhoder
115+
# email: anhoder@88.com
116+
#
117+
# commit_msg_template: "Scoop update for {{ .ProjectName }} version {{ .Tag }}"
118+
# homepage: "https://github.com/go-musicfox/go-musicfox"
119+
# description: "go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持UnblockNeteaseMusic、各种音质级别、lastfm、MPRIS..."
120+
# license: MIT
121+
#
122+
# post_install: ["Write-Host '好用记得给go-musicfox一个star✨哦~'"]
123123

124124
release:
125125
github:

Makefile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,10 @@ build:
1616
install:
1717
./hack/build.sh install
1818

19+
.PHONY: scoop-config-gen
20+
scoop-config-gen:
21+
./hack/scoop_gen.sh
22+
1923
.PHONY: sysroot-pack
2024
sysroot-pack:
2125
@tar cf - $(SYSROOT_DIR) -P | pv -s $[$(du -sk $(SYSROOT_DIR) | awk '{print $1}') * 1024] | pbzip2 > $(SYSROOT_ARCHIVE)

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,11 @@ go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持Unbl
4848

4949
#### 9. MacOS歌词显示
5050

51-
![LyricsX](previews/lyricsX.png)
51+
![LyricsX](previews/lyricsX.gif)
52+
53+
> 1. 需要下载安装[LyricsX go-musicfox Fork版本](https://github.com/go-musicfox/LyricsX/releases/latest)
54+
> 2. 且go-musicfox >= v3.7.7
55+
> 3. 在LyricsX设置中,打开`使用系统正在播放的应用`
5256
5357
## 安装
5458

deploy/scoop/go-musicfox.json

Lines changed: 20 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,28 @@
11
{
2-
"version": "3.7.5",
2+
"version": "3.7.7",
33
"architecture": {
44
"64bit": {
5-
"url": "https://github.com/go-musicfox/go-musicfox/releases/download/v3.7.5/go-musicfox_3.7.5_windows_amd64.zip",
6-
"bin": [
7-
"go-musicfox_3.7.5_windows_amd64/musicfox.exe"
8-
],
9-
"hash": "0f032d4893b77e633082eaf876ac2a6a188f25f78ee2b6a3ac8917a5858a246c"
5+
"url": "https://github.com/go-musicfox/go-musicfox/releases/download/v3.7.7/go-musicfox_3.7.7_windows_amd64.zip",
6+
"hash": "3dee19441c82fe30159e34f00a190267a6fed7cc8baceeae0f707377be162b0a",
7+
"extract_dir": "go-musicfox_3.7.7_windows_amd64"
108
}
119
},
10+
"bin": "musicfox.exe",
1211
"homepage": "https://github.com/go-musicfox/go-musicfox",
1312
"license": "MIT",
1413
"description": "go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持UnblockNeteaseMusic、各种音质级别、lastfm、MPRIS...",
15-
"post_install": [
16-
"Write-Host '好用记得给go-musicfox一个star✨哦~'"
17-
]
18-
}
14+
"post_install": "Write-Host '好用记得给go-musicfox一个star✨哦~'",
15+
"env_set": {
16+
"MUSICFOX_ROOT": "$dir\\data"
17+
},
18+
"persist": "data",
19+
"checkver": "github",
20+
"autoupdate": {
21+
"architecture": {
22+
"64bit": {
23+
"url": "https://github.com/go-musicfox/go-musicfox/releases/download/v$version/go-musicfox_$version_windows_amd64.zip",
24+
"extract_dir": "go-musicfox_$version_windows_amd64"
25+
}
26+
}
27+
}
28+
}

deploy/scoop/go-musicfox.json.tpl

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
{
2+
"version": "${SCOOP_VERSION}",
3+
"architecture": {
4+
"64bit": {
5+
"url": "https://github.com/go-musicfox/go-musicfox/releases/download/v${SCOOP_VERSION}/go-musicfox_${SCOOP_VERSION}_windows_amd64.zip",
6+
"hash": "${SCOOP_HASH}",
7+
"extract_dir": "go-musicfox_${SCOOP_VERSION}_windows_amd64"
8+
}
9+
},
10+
"bin": "musicfox.exe",
11+
"homepage": "https://github.com/go-musicfox/go-musicfox",
12+
"license": "MIT",
13+
"description": "go-musicfox是用Go写的又一款网易云音乐命令行客户端,支持UnblockNeteaseMusic、各种音质级别、lastfm、MPRIS...",
14+
"post_install": "Write-Host '好用记得给go-musicfox一个star✨哦~'",
15+
"env_set": {
16+
"MUSICFOX_ROOT": "\$dir\\\\data"
17+
},
18+
"persist": "data",
19+
"checkver": "github",
20+
"autoupdate": {
21+
"architecture": {
22+
"64bit": {
23+
"url": "https://github.com/go-musicfox/go-musicfox/releases/download/v\$version/go-musicfox_\$version_windows_amd64.zip",
24+
"extract_dir": "go-musicfox_\$version_windows_amd64"
25+
}
26+
}
27+
}
28+
}

go.mod

Lines changed: 15 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,14 @@ module github.com/go-musicfox/go-musicfox
33
go 1.18
44

55
require (
6-
github.com/anhoder/bubbles v0.7.8
7-
github.com/anhoder/bubbletea v0.13.0
86
github.com/anhoder/netease-music v1.3.4
97
github.com/anhoder/notificator v0.0.5
108
github.com/bogem/id3v2/v2 v2.1.3
119
github.com/boltdb/bolt v1.3.1
1210
github.com/buger/jsonparser v1.1.1
11+
github.com/charmbracelet/bubbles v0.15.0
12+
github.com/charmbracelet/bubbletea v0.23.2
13+
github.com/charmbracelet/lipgloss v0.6.0
1314
github.com/faiface/beep v1.1.0
1415
github.com/fhs/gompd/v2 v2.2.0
1516
github.com/fogleman/ease v0.0.0-20170301025033-8da417bf1776
@@ -20,7 +21,7 @@ require (
2021
github.com/gookit/ini/v2 v2.1.0
2122
github.com/lucasb-eyer/go-colorful v1.2.0
2223
github.com/mattn/go-runewidth v0.0.14
23-
github.com/muesli/termenv v0.11.0
24+
github.com/muesli/termenv v0.14.0
2425
github.com/pkg/errors v0.9.1
2526
github.com/progrium/macdriver v0.2.0
2627
github.com/shkh/lastfm-go v0.0.0-20191215035245-89a801c244e0
@@ -33,9 +34,10 @@ require (
3334
require (
3435
github.com/anhoder/requests v0.1.2 // indirect
3536
github.com/atotto/clipboard v0.1.4 // indirect
37+
github.com/aymanbagabas/go-osc52 v1.2.1 // indirect
3638
github.com/cnsilvan/UnblockNeteaseMusic v0.0.0-20220606141015-ee827820fabb // indirect
3739
github.com/cocoonlife/goflac v0.0.0-20170210142907-50ea06ed5a9d // indirect
38-
github.com/containerd/console v1.0.3 // indirect
40+
github.com/containerd/console v1.0.4-0.20230313162750-1ae8d489ac81 // indirect
3941
github.com/forgoer/openssl v1.2.1 // indirect
4042
github.com/go-flac/go-flac v0.3.1 // indirect
4143
github.com/gomodule/redigo v1.8.8 // indirect
@@ -47,25 +49,30 @@ require (
4749
github.com/jfreymuth/oggvorbis v1.0.3 // indirect
4850
github.com/jfreymuth/vorbis v1.0.2 // indirect
4951
github.com/json-iterator/go v1.1.12 // indirect
50-
github.com/mattn/go-isatty v0.0.14 // indirect
52+
github.com/mattn/go-isatty v0.0.17 // indirect
53+
github.com/mattn/go-localereader v0.0.1 // indirect
5154
github.com/mewkiz/flac v1.0.7 // indirect
5255
github.com/mewkiz/pkg v0.0.0-20211102230744-16a6ce8f1b77 // indirect
5356
github.com/mitchellh/mapstructure v1.5.0 // indirect
5457
github.com/modern-go/concurrent v0.0.0-20180306012644-bacd9c7ef1dd // indirect
5558
github.com/modern-go/reflect2 v1.0.2 // indirect
59+
github.com/muesli/ansi v0.0.0-20211018074035-2e021307bc4b // indirect
60+
github.com/muesli/cancelreader v0.2.2 // indirect
61+
github.com/muesli/reflow v0.3.0 // indirect
5662
github.com/rivo/uniseg v0.4.2 // indirect
5763
github.com/xo/terminfo v0.0.0-20220910002029-abceb7e1c41e // indirect
58-
golang.org/x/crypto v0.1.0 // indirect
64+
golang.org/x/crypto v0.7.0 // indirect
5965
golang.org/x/exp/shiny v0.0.0-20230307190834-24139beb5833 // indirect
6066
golang.org/x/image v0.5.0 // indirect
6167
golang.org/x/mobile v0.0.0-20201217150744-e6ae53a27f4f // indirect
6268
golang.org/x/sync v0.1.0 // indirect
63-
golang.org/x/sys v0.5.0 // indirect
64-
golang.org/x/term v0.5.0 // indirect
69+
golang.org/x/sys v0.6.0 // indirect
70+
golang.org/x/term v0.6.0 // indirect
6571
golang.org/x/text v0.8.0 // indirect
6672
)
6773

6874
replace (
75+
github.com/charmbracelet/bubbletea v0.23.2 => github.com/go-musicfox/bubbletea v0.23.3
6976
github.com/cnsilvan/UnblockNeteaseMusic v0.0.0-20220606141015-ee827820fabb => github.com/anhoder/UnblockNeteaseMusic v0.1.0
7077
github.com/cocoonlife/goflac v0.0.0-20170210142907-50ea06ed5a9d => github.com/anhoder/goflac v0.1.0
7178
github.com/faiface/beep v1.1.0 => github.com/anhoder/beep v1.1.8

0 commit comments

Comments
 (0)