From 4d698eabba40c0f92c78b5f791afb250c0d6c618 Mon Sep 17 00:00:00 2001 From: lencx Date: Thu, 15 Dec 2022 13:30:43 +0800 Subject: [PATCH] v0.3.0 --- README-ZH.md | 6 +++--- README.md | 6 +++--- scripts/download.js | 11 ++++++++--- 3 files changed, 14 insertions(+), 9 deletions(-) diff --git a/README-ZH.md b/README-ZH.md index ed4a8dd..a699b36 100644 --- a/README-ZH.md +++ b/README-ZH.md @@ -20,9 +20,9 @@ **最新版:** -- `Mac`: [ChatGPT_0.2.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64.dmg) -- `Linux`: [chat-gpt_0.2.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/chat-gpt_0.2.1_amd64.deb) -- `Windows`: [ChatGPT_0.2.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64_en-US.msi) +- `Mac`: [ChatGPT_v0.3.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/ChatGPT_v0.3.0_x64.dmg) +- `Linux`: [chat-gpt_v0.3.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/chat-gpt_v0.3.0_amd64.deb) +- `Windows`: [ChatGPT_v0.3.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/vv0.3.0/ChatGPT_v0.3.0_x64_en-US.msi) [其他版本...](https://github.com/lencx/ChatGPT/releases) diff --git a/README.md b/README.md index 1e6b76b..711abf4 100644 --- a/README.md +++ b/README.md @@ -20,9 +20,9 @@ **Latest:** -- `Mac`: [ChatGPT_0.2.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64.dmg) -- `Linux`: [chat-gpt_0.2.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/chat-gpt_0.2.1_amd64.deb) -- `Windows`: [ChatGPT_0.2.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.2.1/ChatGPT_0.2.1_x64_en-US.msi) +- `Mac`: [ChatGPT_vv0.3.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/ChatGPT_vv0.3.0_x64.dmg) +- `Linux`: [chat-gpt_vv0.3.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/chat-gpt_vv0.3.0_amd64.deb) +- `Windows`: [ChatGPT_vv0.3.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/vvv0.3.0/ChatGPT_vv0.3.0_x64_en-US.msi) [Other version...](https://github.com/lencx/ChatGPT/releases) diff --git a/scripts/download.js b/scripts/download.js index ae49d94..41e3347 100644 --- a/scripts/download.js +++ b/scripts/download.js @@ -2,8 +2,8 @@ const fs = require('fs'); const argv = process.argv.slice(2); -async function init() { - const content = fs.readFileSync('README.md', 'utf8').split('\n'); +async function rewrite(filename) { + const content = fs.readFileSync(filename, 'utf8').split('\n'); const startRe = //; const endRe = //; @@ -20,7 +20,12 @@ async function init() { } } - fs.writeFileSync('README.md', content.join('\n'), 'utf8'); + fs.writeFileSync(filename, content.join('\n'), 'utf8'); +} + +async function init() { + rewrite('README.md'); + rewrite('README-ZH.md'); } init().catch(console.error); \ No newline at end of file