Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
57 commits
Select commit Hold shift + click to select a range
b7a3663
修复 kg 搜索结果显示问题(#2782)
lyswhut May 5, 2026
be48e78
更新依赖&版本号(2.12.3-beta.0)
lyswhut May 5, 2026
8c4d5a1
新增当前播放列表功能
sunny1028 May 7, 2026
3f5e50d
修复稍后播放拖拽排序
sunny1028 May 7, 2026
f273791
新增当前播放列表功能
sunny1028 May 7, 2026
9a4a32e
修复稍后播放拖拽排序
sunny1028 May 7, 2026
0f0d3f8
修复列表文字区域右键菜单
sunny1028 May 7, 2026
6d46bd9
Merge branch 'fix-list-context-menu' into dev-local
sunny1028 May 7, 2026
00c0782
优化当前播放歌曲高亮
sunny1028 May 20, 2026
1a0c655
补充任务栏歌词设计文档
sunny1028 May 20, 2026
98f0023
补充任务栏歌词实现计划
sunny1028 May 20, 2026
26e6225
忽略本地 worktree 目录
sunny1028 May 20, 2026
88dab1c
补充任务栏歌词配置与类型
sunny1028 May 20, 2026
89d1d64
完善任务栏歌词契约细节
sunny1028 May 20, 2026
8875878
新增任务栏歌词主进程宿主
sunny1028 May 21, 2026
ced5909
修正任务栏歌词定位与占位宿主
sunny1028 May 21, 2026
09558bb
新增任务栏歌词渲染进程
sunny1028 May 21, 2026
8e21e95
完善任务栏歌词渲染配置
sunny1028 May 21, 2026
503f251
接入任务栏歌词实时状态同步
sunny1028 May 21, 2026
ea21024
修正任务栏歌词状态刷新
sunny1028 May 21, 2026
9a378fb
完善任务栏歌词设置与窗口定位
sunny1028 May 21, 2026
351774e
修正任务栏歌词回退定位
sunny1028 May 21, 2026
67d2a01
修正任务栏歌词收尾问题
sunny1028 May 21, 2026
b126ea1
修正任务栏歌词输入穿透
sunny1028 May 21, 2026
011ee38
收紧任务栏歌词布局范围
sunny1028 May 21, 2026
fc59481
补充任务栏歌词支持范围说明
sunny1028 May 21, 2026
1a14cd9
Merge branch 'feat-2812-taskbar-lyric' into feat-2812
sunny1028 May 21, 2026
5d44189
完善任务栏歌词体验
sunny1028 May 21, 2026
713cfb1
补充任务栏歌词右键菜单设计
sunny1028 May 21, 2026
ae215af
新增任务栏歌词右键菜单
sunny1028 May 21, 2026
962899c
补充任务栏歌词颜色配置设计
sunny1028 May 21, 2026
fc5b6fc
完善任务栏歌词颜色配置
sunny1028 May 21, 2026
6decfcb
补充任务栏歌词主界面入口
sunny1028 May 22, 2026
6a34395
修复隐藏主界面后任务栏歌词不更新
sunny1028 May 22, 2026
8f11988
准备发布 v2.12.2-sunny.1
sunny1028 May 22, 2026
b3cb1ac
Merge branch 'dev-local'
sunny1028 May 22, 2026
51b0115
发布 v2.12.2-sunny.1
sunny1028 May 22, 2026
3c8ad25
触发 v2.12.2-sunny.1 发布
sunny1028 May 22, 2026
9b355fe
升级版本号到 2.12.3-sunny.1
sunny1028 May 22, 2026
b983f2f
修复 GitHub Release 工作流权限
sunny1028 May 22, 2026
9e32ae8
调整任务栏歌词层级刷新与版本号
sunny1028 May 24, 2026
699e05b
Merge branch 'dev-local'
sunny1028 May 24, 2026
1437ec2
发布 2.12.3-sunny.1
sunny1028 May 24, 2026
963e306
发布 2.12.3-sunny.2
sunny1028 May 24, 2026
56b4317
修复任务栏歌词右键出现任务栏图标
sunny1028 May 24, 2026
1ca7970
优化任务栏歌词悬浮控制按钮
sunny1028 May 24, 2026
5ce0782
Merge branch 'feat-2812'
sunny1028 May 24, 2026
6f6aa90
发布 2.12.3-sunny.3
sunny1028 May 24, 2026
5fae25e
调整 GitHub Release 发布流程
sunny1028 May 24, 2026
2545cd6
增强任务栏歌词样式配置
sunny1028 May 25, 2026
ef62d79
优化任务栏歌词交互体验
sunny1028 May 25, 2026
14905fe
Merge branch 'feat-2812'
sunny1028 May 25, 2026
25fb075
更新版本号到 2.12.3-sunny.4
sunny1028 May 25, 2026
ba961c4
重构任务栏歌词界面结构
sunny1028 May 25, 2026
25e98aa
修复任务栏歌词拖拽失效问题
sunny1028 May 25, 2026
d79a610
Merge branch 'feat-2812'
sunny1028 May 25, 2026
07b7c3f
递增版本号
sunny1028 May 25, 2026
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
277 changes: 207 additions & 70 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,45 +5,16 @@ on:
branches:
- master

permissions:
contents: write

env:
IS_CI: 'true'

jobs:
# CheckCode:
# name: Lint Code
# runs-on: ubuntu-latest
# steps:
# - name: Check out git repository
# uses: actions/checkout@v6

# - name: Install Node.js
# uses: actions/setup-node@v4
# with:
# node-version: 20

# - name: Cache file
# uses: actions/cache@v4
# with:
# path: |
# node_modules
# $HOME/.cache/electron
# $HOME/.cache/electron-builder
# $HOME/.npm/_prebuilds
# key: ${{ runner.os }}-build-caches-${{ hashFiles('**/package-lock.json') }}
# restore-keys: |
# ${{ runner.os }}-build-

# - name: Install Dependencies
# run: |
# npm ci

# - name: Lint src code
# run: npm run lint

Windows:
name: Windows
runs-on: windows-latest
# needs: CheckCode
steps:
- name: Check out git repository
uses: actions/checkout@v6
Expand All @@ -65,26 +36,52 @@ jobs:
git status --porcelain
npm run build

- name: Release package
run: |
npm run publish:win:7z:x64
npm run publish:win:7z:arm64
npm run publish:win:setup:arm64
npm run publish:win:setup:x64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BT_TOKEN: ${{ secrets.BT_TOKEN }}
- name: Build Package Setup x64
run: npm run pack:win:setup:x64

- name: Upload Artifact Setup x64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-x64-Setup
path: build/*-x64-Setup.exe

- name: Build Package 7z x64
run: npm run pack:win:7z:x64

- name: Upload Artifact 7z x64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-win_x64-green
path: build/*win_x64-green.7z

- name: Build Package Setup arm64
run: npm run pack:win:setup:arm64

- name: Upload Artifact Setup arm64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-arm64-Setup
path: build/*-arm64-Setup.exe

- name: Build Package 7z arm64
run: npm run pack:win:7z:arm64

- name: Upload Artifact 7z arm64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-win_arm64-green
path: build/*win_arm64-green.7z

- name: Generate file MD5
run: |
cd build
Get-FileHash *.exe,*.7z -Algorithm MD5 | Format-List


Windows_7:
name: Windows_7
runs-on: windows-latest
# needs: CheckCode
env:
BUILD_WIN7: true
steps:
- name: Check out git repository
uses: actions/checkout@v6
Expand Down Expand Up @@ -115,14 +112,32 @@ jobs:
npm install electron@22
pip.exe install setuptools

- name: Release win7 package
run: |
npm run publish:win7:setup:x64
npm run publish:win7:7z:x64
npm run publish:win7:7z:x86
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BT_TOKEN: ${{ secrets.BT_TOKEN }}
- name: Build Package win7 Setup x64
run: npm run pack:win7:setup:x64

- name: Upload Artifact win7 Setup x64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-win7_x64-Setup
path: build/*win7_x64-Setup.exe

- name: Build Package win7 7z x64
run: npm run pack:win7:7z:x64

- name: Upload Artifact win7 7z x64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-win7_x64-green
path: build/*win7_x64-green.7z

- name: Build Package win7 7z x86
run: npm run pack:win7:7z:x86

- name: Upload Artifact win7 7z x86
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-win7_x86-green
path: build/*win7_x86-green.7z

- name: Generate file MD5
run: |
Expand All @@ -132,7 +147,6 @@ jobs:
Mac:
name: Mac
runs-on: macos-latest
# needs: CheckCode
steps:
- name: Check out git repository
uses: actions/checkout@v6
Expand All @@ -146,6 +160,7 @@ jobs:

- name: Show Env
run: echo "${{ env.NPM_CACHE }}"

- name: Setup Node Env
env:
NPM_CACHE: ${{ env.NPM_CACHE }}
Expand All @@ -156,13 +171,24 @@ jobs:
git status --porcelain
npm run build

- name: Release package
- name: Build Package dmg
run: |
npm run publish:mac:dmg
npm run publish:mac:dmg:arm64
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BT_TOKEN: ${{ secrets.BT_TOKEN }}
npm run pack:mac:dmg
npm run pack:mac:dmg:arm64

- name: Upload Artifact dmg
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-mac-dmg
path: |
build/*.dmg
!build/*-arm64.dmg

- name: Upload Artifact dmg arm64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-mac-dmg-arm64
path: build/*-arm64.dmg

- name: Generate file MD5
run: |
Expand All @@ -172,7 +198,6 @@ jobs:
Linux:
name: Linux
runs-on: ubuntu-latest
# needs: CheckCode
steps:
- name: Install package
run: sudo apt-get update && sudo apt-get install -y rpm libarchive-tools
Expand All @@ -186,6 +211,7 @@ jobs:

- name: Show Env
run: echo "${{ env.NPM_CACHE }}"

- name: Setup Node Env
env:
NPM_CACHE: ${{ env.NPM_CACHE }}
Expand All @@ -196,19 +222,130 @@ jobs:
git status --porcelain
npm run build

- name: Release package
run: |
npm run publish:linux:deb:amd64
npm run publish:linux:deb:arm64
npm run publish:linux:deb:armv7l
npm run publish:linux:appImage
npm run publish:linux:rpm
npm run publish:linux:pacman
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BT_TOKEN: ${{ secrets.BT_TOKEN }}
- name: Build Package deb amd64
run: npm run pack:linux:deb:amd64

- name: Upload Artifact deb amd64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-deb-amd64
path: build/*_amd64.deb

- name: Build Package deb arm64
run: npm run pack:linux:deb:arm64

- name: Upload Artifact deb arm64
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-deb-arm64
path: build/*_arm64.deb

- name: Build Package deb armv7l
run: npm run pack:linux:deb:armv7l

- name: Upload Artifact deb armv7l
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-deb-armv7l
path: build/*_armv7l.deb

- name: Build Package x64 appImage
run: npm run pack:linux:appImage

- name: Upload Artifact x64 appImage
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-x64-appImage
path: build/*_x64.AppImage

- name: Build Package x64 rpm
run: npm run pack:linux:rpm

- name: Upload Artifact x64 rpm
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-x64-rpm
path: build/*.x64.rpm

- name: Build Package x64 pacman
run: npm run pack:linux:pacman

- name: Upload Artifact x64 pacman
uses: actions/upload-artifact@v4
with:
name: lx-music-desktop-x64-pacman
path: build/*_x64.pacman

- name: Generate file MD5
run: |
cd build
md5sum *.deb *.rpm *.pacman *.AppImage

Release:
name: Release
runs-on: ubuntu-latest
needs:
- Windows
- Windows_7
- Mac
- Linux
steps:
- name: Check out git repository
uses: actions/checkout@v6

- name: Download all artifacts
uses: actions/download-artifact@v4
with:
path: release-artifacts

- name: Read version from package.json
id: version
run: |
VERSION=$(node -p "require('./package.json').version")
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
echo "tag=v$VERSION" >> "$GITHUB_OUTPUT"

- name: Flatten artifacts
run: |
mkdir -p release-files
find release-artifacts -type f -exec cp {} release-files/ \;
ls -la release-files

- name: Delete duplicated draft release
env:
GH_TOKEN: ${{ github.token }}
run: |
gh release list --json tagName,isDraft,name | \
jq -r '.[] | select(.isDraft == true and .name == "${{ steps.version.outputs.version }}") | .tagName' | \
while read -r TAG_NAME; do
if [ -n "$TAG_NAME" ]; then
gh release delete "$TAG_NAME" --cleanup-tag --yes || true
fi
done

- name: Create or update tag
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
echo "Release already exists for ${{ steps.version.outputs.tag }}"
else
if git rev-parse "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
echo "Tag ${{ steps.version.outputs.tag }} already exists"
else
git tag "${{ steps.version.outputs.tag }}"
git push origin "${{ steps.version.outputs.tag }}"
fi
fi

- name: Create or update GitHub release
env:
GH_TOKEN: ${{ github.token }}
run: |
if gh release view "${{ steps.version.outputs.tag }}" >/dev/null 2>&1; then
gh release upload "${{ steps.version.outputs.tag }}" release-files/* --clobber
else
gh release create "${{ steps.version.outputs.tag }}" release-files/* \
--title "${{ steps.version.outputs.version }}" \
--notes ""
fi
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -71,3 +71,5 @@ publish/assets
publish/utils/githubToken.js

src/**/*-internal.js

.worktrees/
2 changes: 1 addition & 1 deletion build-config/build-pack.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ const options = {
publish: [
{
provider: 'github',
owner: 'lyswhut',
owner: 'sunny1028',
repo: 'lx-music-desktop',
},
],
Expand Down
Loading