Skip to content

Commit 91d727d

Browse files
committed
发布 v1.8.0
1 parent 5012339 commit 91d727d

File tree

6 files changed

+77
-14
lines changed

6 files changed

+77
-14
lines changed

CHANGELOG.md

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,33 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
66
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
77
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).
88

9+
## [1.8.0](https://github.com/lyswhut/lx-music-mobile/compare/v1.7.1...v1.8.0) - 2025-11-29
10+
11+
我们很高兴地宣布新项目 Any Listen 的桌面版已发布,目前已支持列表跟随本地文件自动更新、加载并播放WebDAV上的歌曲等功能,更多功能仍在积极开发中,桌面版与Web版将同步更新。
12+
对于有播放本地音乐或播放服务器上音乐需求的人可以试试,若遇到任何问题可以发 issue 反馈。
13+
14+
### 新增
15+
16+
- 新增「设置 → 基本设置 → 允许通过底栏进度条调整播放进度」设置(#778
17+
*默认为原来的启用状态,若你觉得在进入播放详情页时会误触调整进度,则可以将其关闭*
18+
- 新增 Any Listen 歌词标签数据读取与播放
19+
- 编辑本地歌曲的标签信息时,添加 Any Listen 歌词标签数据生成(用于支持已下载歌曲的歌词在桌面版逐字播放)
20+
21+
### 优化
22+
23+
- 设置-备份与恢复 导入列表数据时,增加二次确认提示(#809
24+
25+
### 修复
26+
27+
- 修复切歌时,偶现歌词不播放的问题
28+
- 修复TX源搜索失败 (@Folltoshe)
29+
- 修复MG源歌单加载失败(#913
30+
- 修复MG源评论加载失败(#914
31+
32+
### 其他
33+
34+
- 更新 Media3 到 v1.8.0
35+
936
## [1.7.1](https://github.com/lyswhut/lx-music-mobile/compare/v1.7.0...v1.7.1) - 2025-05-01
1037

1138
### 修复

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "lx-music-mobile",
3-
"version": "1.8.0-beta.10",
4-
"versionCode": 71,
3+
"version": "1.8.0",
4+
"versionCode": 72,
55
"private": true,
66
"scripts": {
77
"dev": "react-native run-android --active-arch-only",

publish/utils/parseChangelog.js

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
/**
2+
*
3+
* @param {string} text
4+
* @returns
5+
*/
6+
export const parseChangelog = async(text) => {
7+
const versions = []
8+
const lines = text.split(/\r\n|\r|\n/)
9+
let currentVersion = null
10+
let currentDate = null
11+
let currentDesc = ''
12+
13+
for (const line of lines) {
14+
const versionMatch = line.match(/^\s*##\s+\[?(\d+\.\d+\.\d+)\]?.*?-\s+(\d{4}-\d{2}-\d{2})$/)
15+
if (versionMatch) {
16+
if (currentVersion) {
17+
versions.push({
18+
version: currentVersion,
19+
date: currentDate,
20+
desc: currentDesc.trim(),
21+
})
22+
}
23+
currentVersion = versionMatch[1]
24+
currentDate = versionMatch[3]
25+
currentDesc = ''
26+
} else {
27+
currentDesc += `${line}\n`
28+
}
29+
}
30+
31+
if (currentVersion) {
32+
versions.push({
33+
version: currentVersion,
34+
date: currentDate,
35+
desc: currentDesc.trim(),
36+
})
37+
}
38+
39+
return versions
40+
}

publish/utils/updateChangeLog.js

Lines changed: 5 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -6,12 +6,12 @@ const version = require('../version.json')
66
const chalk = require('chalk')
77
const pkg_bak = JSON.stringify(pkg, null, 2)
88
const version_bak = JSON.stringify(version, null, 2)
9-
const parseChangelog = require('changelog-parser')
109
const changelogPath = jp('../../CHANGELOG.md')
10+
const { parseChangelog } = require('./parseChangelog')
1111

12-
const getPrevVer = () => parseChangelog(changelogPath).then(res => {
13-
if (!res.versions.length) throw new Error('CHANGELOG 无法解析到版本号')
14-
return res.versions[0].version
12+
const getPrevVer = () => parseChangelog(fs.readFileSync(changelogPath, 'utf-8').toString()).then(versions => {
13+
if (!versions.length) throw new Error('CHANGELOG 无法解析到版本号')
14+
return versions[0].version
1515
})
1616

1717
const updateChangeLog = async(newVerNum, newChangeLog) => {
@@ -23,11 +23,7 @@ const updateChangeLog = async(newVerNum, newChangeLog) => {
2323

2424

2525
module.exports = async newVerNum => {
26-
if (!newVerNum) {
27-
let verArr = pkg.version.split('.')
28-
verArr[verArr.length - 1] = parseInt(verArr[verArr.length - 1]) + 1
29-
newVerNum = verArr.join('.')
30-
}
26+
if (!newVerNum) newVerNum = pkg.version
3127
const newMDChangeLog = fs.readFileSync(jp('../changeLog.md'), 'utf-8')
3228
version.history.unshift({
3329
version: version.version,

publish/version.json

Lines changed: 1 addition & 1 deletion
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)