chore: release v0.7.0

This commit is contained in:
晴天
2026-03-08 02:02:01 +08:00
parent af6a447cf1
commit 6bd7526348
8 changed files with 104 additions and 29 deletions

View File

@@ -51,7 +51,13 @@ const targets = [
{
file: 'docs/index.html',
update(content) {
return content.replace(/"softwareVersion":\s*"[^"]*"/, `"softwareVersion": "${version}"`)
// JSON-LD softwareVersion
let result = content.replace(/"softwareVersion":\s*"[^"]*"/, `"softwareVersion": "${version}"`)
// 下载链接中的版本号: ClawPanel_x.y.z_xxx
result = result.replace(/ClawPanel_\d+\.\d+\.\d+_/g, `ClawPanel_${version}_`)
// 版本徽标: v0.x.x 最新版
result = result.replace(/v\d+\.\d+\.\d+\s*最新版/, `v${version} 最新版`)
return result
},
},
]