1
0
mirror of https://github.com/lencx/ChatGPT.git synced 2024-10-01 01:06:13 -04:00

Merge pull request #63 from lencx/fix

This commit is contained in:
lencx 2022-12-23 20:21:34 +08:00 committed by GitHub
commit 7b8f29534b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 16 additions and 12 deletions

View File

@ -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)

View File

@ -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)

View File

@ -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

View File

@ -7,7 +7,7 @@
},
"package": {
"productName": "ChatGPT",
"version": "0.6.0"
"version": "0.6.1"
},
"tauri": {
"allowlist": {

4
src/utils.ts vendored
View File

@ -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<string, any>, 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));