This commit is contained in:
lencx
2023-01-15 16:21:34 +08:00
parent f0c635bd3b
commit ef3820fad8
4 changed files with 25 additions and 23 deletions

4
scripts/download.js vendored
View File

@@ -13,7 +13,9 @@ async function rewrite(filename) {
flag = true;
}
if (flag) {
content[i] = content[i].replace(/(\d+).(\d+).(\d+)/g, argv[0]);
if (!/winget install --id=lencx.ChatGPT -e --version/.test(content[i])) {
content[i] = content[i].replace(/(\d+).(\d+).(\d+)/g, argv[0]);
}
}
if (endRe.test(content[i])) {
break;