Skip to content

Commit

Permalink
发布v2.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lyswhut committed Feb 18, 2023
1 parent afd8d69 commit 067ca91
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 11 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,14 @@ Project versioning adheres to [Semantic Versioning](http://semver.org/).
Commit convention is based on [Conventional Commits](http://conventionalcommits.org).
Change log format is based on [Keep a Changelog](http://keepachangelog.com/).

## [2.1.2](https://github.com/lyswhut/lx-music-desktop/compare/v2.1.1...v2.1.2) - 2023-02-18


### 修复

- 修复处于最新版本时更新弹窗日志内容显示异常的问题
- 修复更新到最新版本后的首次启动时的更新日志未显示的问题

## [2.1.1](https://github.com/lyswhut/lx-music-desktop/compare/v2.1.0...v2.1.1) - 2023-02-18


Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "lx-music-desktop",
"version": "2.1.1",
"version": "2.1.2",
"description": "一个免费的音乐查找助手",
"main": "./dist/main.js",
"productName": "lx-music-desktop",
Expand Down
3 changes: 2 additions & 1 deletion publish/changeLog.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@

### 修复

- 修复检查更新日志地址不正确的问题
- 修复处于最新版本时更新弹窗日志内容显示异常的问题
- 修复更新到最新版本后的首次启动时的更新日志未显示的问题
2 changes: 1 addition & 1 deletion publish/version.json

Large diffs are not rendered by default.

19 changes: 11 additions & 8 deletions src/renderer/core/useApp/useUpdate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export default () => {

const rUpdateAvailable = onUpdateAvailable(({ params: info }) => {
// versionInfo.isDownloading = true
console.log(info)
// console.log(info)
versionInfo.newVersion = {
version: info.version,
desc: info.releaseNotes as string,
Expand All @@ -152,13 +152,16 @@ export default () => {
})
const rUpdateNotAvailable = onUpdateNotAvailable(({ params: info }) => {
clearUpdateTimeout()
versionInfo.newVersion = {
version: info.version,
desc: info.releaseNotes as string,
}
versionInfo.isLatest = true
versionInfo.isUnknown = false
versionInfo.status = 'idle'
// versionInfo.newVersion = {
// version: info.version,
// desc: info.releaseNotes as string,
// }
void handleGetVersionInfo().finally(() => {
versionInfo.isLatest = true
versionInfo.isUnknown = false
versionInfo.status = 'idle'
handleShowChangeLog()
})
})
const rUpdateError = onUpdateError((params) => {
clearUpdateTimeout()
Expand Down

0 comments on commit 067ca91

Please sign in to comment.