From 10e4387addce8adb15189977b33e07119202f292 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=89=8B=E7=93=9C=E4=B8=80=E5=8D=81=E9=9B=AA?= Date: Sun, 27 Oct 2024 22:45:51 +0800 Subject: [PATCH] fix: script --- script/checkVersion.cjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/script/checkVersion.cjs b/script/checkVersion.cjs index 7cbb7721..2b8f1d8f 100644 --- a/script/checkVersion.cjs +++ b/script/checkVersion.cjs @@ -40,14 +40,14 @@ try { // 更新版本,构建安全的sed命令 const safeScriptContent = ` #!/bin/bash - git config --global user.email "bot@test.wumiao.wang" - git config --global user.name "Version" + git config --global user.email "nanaeonn@outlook.com" + git config --global user.name "Mlikiowa" sed -i "s/\\"version\\": \\"${currentVersion}\\"/\\"version\\": \\"${targetVersion}\\"/g" package.json sed -i "s/\\"version\\": \\"${manifestCurrentVersion}\\"/\\"version\\": \\"${targetVersion}\\"/g" manifest.json sed -i "s/napCatVersion = '.*'/napCatVersion = '${targetVersion}'/g" ./src/common/version.ts sed -i "s/SettingButton(\\"V.*\\", \\"napcat-update-button\\", \\"secondary\\")/SettingButton(\\"V${targetVersion}\\", \\"napcat-update-button\\", \\"secondary\\")/g" ./static/assets/renderer.js git add . - git commit -m "chore:version change" + git commit -m "release: v${targetVersion}" git push -u origin main`; writeScriptToFile(safeScriptContent); }