mirror of
https://github.com/FranP-code/ChatGPT.git
synced 2025-10-13 00:13:25 +00:00
release
This commit is contained in:
4
scripts/download.js
vendored
4
scripts/download.js
vendored
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user