更新 Electron 到 35(#2354)

This commit is contained in:
lyswhut
2025-04-19 15:34:29 +08:00
parent a8790b9835
commit 80844580df
15 changed files with 134 additions and 170 deletions
+1 -1
View File
@@ -28,4 +28,4 @@
### 其他
- 更新项目文档(@3gf8jv4dv)
- 更新 Electron 到 v34.3.0
- 更新 Electron 到 35.2.0
+1 -1
View File
@@ -25,7 +25,7 @@ const updateChangeLog = async(newVerNum, newChangeLog) => {
let changeLog = fs.readFileSync(changelogPath, 'utf-8')
const prevVer = await getPrevVer()
const log = `## [${newVerNum}](${pkg.repository.url.replace(/^git\+(http.+)\.git$/, '$1')}/compare/v${prevVer}...v${newVerNum}) - ${formatTime()}\n\n${newChangeLog}`
fs.writeFileSync(changelogPath, changeLog.replace(new RegExp('(## [?0.1.1]?)'), log + '\n$1'), 'utf-8')
fs.writeFileSync(changelogPath, changeLog.replace(/(## \[(?:\d+\.))/, log + '\n$1'), 'utf-8')
}
// const renderChangeLog = md => md_renderer(md)