mirror of
https://github.com/qingchencloud/clawpanel.git
synced 2026-06-14 04:00:07 +08:00
feat(update): integrate official site update flow
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user