feat(update): integrate official site update flow

This commit is contained in:
晴天
2026-06-06 13:59:52 +08:00
parent 38934fe754
commit f340b64028
35 changed files with 4074 additions and 2230 deletions

View File

@@ -80,18 +80,6 @@ const targets = [
return content.replace(pattern, `$1${version}$2`)
},
},
{
file: 'docs/index.html',
update(content) {
// 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
},
},
]
let changed = 0