Skip to content

Commit 067ca91

Browse files
committed
发布v2.1.2
1 parent afd8d69 commit 067ca91

File tree

5 files changed

+23
-11
lines changed

5 files changed

+23
-11
lines changed

CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,14 @@ 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+
## [2.1.2](https://github.com/lyswhut/lx-music-desktop/compare/v2.1.1...v2.1.2) - 2023-02-18
10+
11+
12+
### 修复
13+
14+
- 修复处于最新版本时更新弹窗日志内容显示异常的问题
15+
- 修复更新到最新版本后的首次启动时的更新日志未显示的问题
16+
917
## [2.1.1](https://github.com/lyswhut/lx-music-desktop/compare/v2.1.0...v2.1.1) - 2023-02-18
1018

1119

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "lx-music-desktop",
3-
"version": "2.1.1",
3+
"version": "2.1.2",
44
"description": "一个免费的音乐查找助手",
55
"main": "./dist/main.js",
66
"productName": "lx-music-desktop",

publish/changeLog.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11

22
### 修复
33

4-
- 修复检查更新日志地址不正确的问题
4+
- 修复处于最新版本时更新弹窗日志内容显示异常的问题
5+
- 修复更新到最新版本后的首次启动时的更新日志未显示的问题

publish/version.json

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

src/renderer/core/useApp/useUpdate.ts

Lines changed: 11 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export default () => {
139139

140140
const rUpdateAvailable = onUpdateAvailable(({ params: info }) => {
141141
// versionInfo.isDownloading = true
142-
console.log(info)
142+
// console.log(info)
143143
versionInfo.newVersion = {
144144
version: info.version,
145145
desc: info.releaseNotes as string,
@@ -152,13 +152,16 @@ export default () => {
152152
})
153153
const rUpdateNotAvailable = onUpdateNotAvailable(({ params: info }) => {
154154
clearUpdateTimeout()
155-
versionInfo.newVersion = {
156-
version: info.version,
157-
desc: info.releaseNotes as string,
158-
}
159-
versionInfo.isLatest = true
160-
versionInfo.isUnknown = false
161-
versionInfo.status = 'idle'
155+
// versionInfo.newVersion = {
156+
// version: info.version,
157+
// desc: info.releaseNotes as string,
158+
// }
159+
void handleGetVersionInfo().finally(() => {
160+
versionInfo.isLatest = true
161+
versionInfo.isUnknown = false
162+
versionInfo.status = 'idle'
163+
handleShowChangeLog()
164+
})
162165
})
163166
const rUpdateError = onUpdateError((params) => {
164167
clearUpdateTimeout()

0 commit comments

Comments
 (0)