From a7c4545dbfcb5460d653ce06230970c012505403 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 20:02:32 +0800 Subject: [PATCH 1/3] fix: path not allowed on the configured scope --- src/utils.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/utils.ts b/src/utils.ts index cc15f27..ee31d64 100644 --- a/src/utils.ts +++ b/src/utils.ts @@ -52,12 +52,12 @@ export const readJSON = async (path: string, opts: readJSONOpts = {}) => { type writeJSONOpts = { dir?: string, isRoot?: boolean }; export const writeJSON = async (path: string, data: Record, opts: writeJSONOpts = {}) => { - const { isRoot = false, dir = '' } = opts; + const { isRoot = false } = opts; const root = await chatRoot(); const file = await join(isRoot ? '' : root, path); if (isRoot && !await exists(await dirname(file))) { - await createDir(await join('.chatgpt', dir), { dir: BaseDirectory.Home }); + await createDir(await dirname(file), { recursive: true }); } await writeTextFile(file, JSON.stringify(data, null, 2)); From 8a79c2839842ae19f1cb2b17c499f7eb30394313 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 20:04:42 +0800 Subject: [PATCH 2/3] readme --- README-ZH_CN.md | 6 +++--- README.md | 6 +++--- UPDATE_LOG.md | 10 +++++++--- 3 files changed, 13 insertions(+), 9 deletions(-) diff --git a/README-ZH_CN.md b/README-ZH_CN.md index 22a7311..b0578f9 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -22,9 +22,9 @@ **最新版:** -- `Mac`: [ChatGPT_0.6.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/ChatGPT_0.6.0_x64.dmg) -- `Linux`: [chat-gpt_0.6.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/chat-gpt_0.6.0_amd64.deb) -- `Windows`: [ChatGPT_0.6.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/ChatGPT_0.6.0_x64_en-US.msi) +- `Mac`: [ChatGPT_0.6.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/ChatGPT_0.6.1_x64.dmg) +- `Linux`: [chat-gpt_0.6.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/chat-gpt_0.6.1_amd64.deb) +- `Windows`: [ChatGPT_0.6.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/ChatGPT_0.6.1_x64_en-US.msi) [其他版本...](https://github.com/lencx/ChatGPT/releases) diff --git a/README.md b/README.md index 7a30925..d496d8a 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ **Latest:** -- `Mac`: [ChatGPT_0.6.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/ChatGPT_0.6.0_x64.dmg) -- `Linux`: [chat-gpt_0.6.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/chat-gpt_0.6.0_amd64.deb) -- `Windows`: [ChatGPT_0.6.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.0/ChatGPT_0.6.0_x64_en-US.msi) +- `Mac`: [ChatGPT_0.6.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/ChatGPT_0.6.1_x64.dmg) +- `Linux`: [chat-gpt_0.6.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/chat-gpt_0.6.1_amd64.deb) +- `Windows`: [ChatGPT_0.6.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.1/ChatGPT_0.6.1_x64_en-US.msi) [Other version...](https://github.com/lencx/ChatGPT/releases) diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index 55fe888..1caca26 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -1,9 +1,8 @@ # UPDATE LOG -## v0.6.0 +## v0.6.1 -fix: -- windows show Chinese when upgrading +fix: path not allowed on the configured scope feat: - optimize the generated pdf file size @@ -12,6 +11,11 @@ feat: - the slash command is triggered by the enter key - under the slash command, use the tab key to modify the contents of the `{q}` tag (only single changes are supported (https://github.com/lencx/ChatGPT/issues/54) +## v0.6.0 + +fix: +- windows show Chinese when upgrading + ## v0.5.1 some optimization From e4e56c7dbb05a41baa532035f47e66df9e8083cc Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 20:04:59 +0800 Subject: [PATCH 3/3] v0.6.1 --- src-tauri/tauri.conf.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index a053bb6..58faa7c 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ChatGPT", - "version": "0.6.0" + "version": "0.6.1" }, "tauri": { "allowlist": {