-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
104 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
## v0.2.4 | ||
|
||
### Features | ||
|
||
- add auto start support | ||
- add single instance plugin | ||
- refactor user changed logic | ||
|
||
### Bug Fixes | ||
|
||
- hide menus on windows and linux | ||
- fix legacy downloads logic | ||
- fix user profile picture nav link | ||
- hide upload music tab | ||
- fix windows closing bug | ||
- disable cross-fade temporally | ||
- fix initFonts method | ||
- delay splash screen on launch | ||
|
||
--- | ||
|
||
## v0.2.3 | ||
|
||
|
||
### Bug Fixes | ||
|
||
- fix miniplayer position in windows | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,7 @@ | ||
{ | ||
"dependencies": { | ||
"@actions/github": "^5.1.1", | ||
"fs-extra": "^11.1.1", | ||
"node-fetch": "^3.3.1" | ||
}, | ||
"scripts": { | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,45 @@ | ||
import fs from "fs-extra"; | ||
import path from "path"; | ||
|
||
const UPDATE_LOG = "UPDATELOG.md"; | ||
|
||
// parse the UPDATELOG.md | ||
export async function resolveUpdateLog(tag) { | ||
const cwd = process.cwd(); | ||
|
||
const reTitle = /^## v[\d\.]+/; | ||
const reEnd = /^---/; | ||
|
||
const file = path.join(cwd, UPDATE_LOG); | ||
|
||
if (!(await fs.pathExists(file))) { | ||
throw new Error("could not found UPDATELOG.md"); | ||
} | ||
|
||
const data = await fs.readFile(file).then((d) => d.toString("utf8")); | ||
|
||
const map = {}; | ||
let p = ""; | ||
|
||
data.split("\n").forEach((line) => { | ||
if (reTitle.test(line)) { | ||
p = line.slice(3).trim(); | ||
if (!map[p]) { | ||
map[p] = []; | ||
} else { | ||
throw new Error(`Tag ${p} dup`); | ||
} | ||
} else if (reEnd.test(line)) { | ||
p = ""; | ||
} else if (p) { | ||
map[p].push(line); | ||
} | ||
}); | ||
|
||
if (!map[tag]) { | ||
throw new Error(`could not found "${tag}" in UPDATELOG.md`); | ||
} | ||
|
||
return map[tag].join("\n").trim(); | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters