Compare commits

...

13 Commits

Author SHA1 Message Date
lencx
ca3badc783 v0.6.3 2022-12-23 22:27:46 +08:00
lencx
d7328f576a v0.6.3 2022-12-23 22:27:37 +08:00
lencx
eaf72e2b73 fix: action 2022-12-23 22:23:35 +08:00
lencx
bd2c4fff5c fix: action 2022-12-23 22:10:27 +08:00
lencx
3ca66cf309 v0.6.3 2022-12-23 21:56:45 +08:00
lencx
44c91bc85c fix: path not allowed on the configured scope 2022-12-23 21:56:16 +08:00
lencx
8193104853 v0.6.2 2022-12-23 21:31:08 +08:00
lencx
11e07e87d4 fix: path not allowed on the configured scope 2022-12-23 21:30:08 +08:00
lencx
e4e56c7dbb v0.6.1 2022-12-23 20:04:59 +08:00
lencx
8a79c28398 readme 2022-12-23 20:04:42 +08:00
lencx
a7c4545dbf fix: path not allowed on the configured scope 2022-12-23 20:02:32 +08:00
lencx
d93079f682 Merge pull request #62 from lencx/dev 2022-12-23 19:20:38 +08:00
lencx
44dcdba10f v0.6.0 (#54 #55) 2022-12-23 19:18:40 +08:00
6 changed files with 22 additions and 31 deletions

View File

@@ -19,7 +19,7 @@ jobs:
shell: bash
run: |
echo "using version tag ${GITHUB_REF:10}"
echo ::set-output name=version::"${GITHUB_REF:10}"
echo "version=${GITHUB_REF:10}" >> $GITHUB_ENV
- name: Create Release
id: create_release
@@ -27,8 +27,8 @@ jobs:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: '${{ steps.get_version.outputs.VERSION }}'
release_name: 'ChatGPT ${{ steps.get_version.outputs.VERSION }}'
tag_name: '${{ env.version }}'
release_name: 'ChatGPT ${{ env.version }}'
body: 'See the assets to download this version and install.'
build-tauri:
@@ -61,19 +61,6 @@ jobs:
sudo apt-get update
sudo apt-get install -y libgtk-3-dev webkit2gtk-4.0 libappindicator3-dev librsvg2-dev patchelf
- name: Get yarn cache directory path
id: yarn-cache-dir-path
run: echo "::set-output name=dir::$(yarn config get cacheFolder)"
- name: Yarn cache
uses: actions/cache@v2
id: yarn-cache # use this to check for `cache-hit` (`steps.yarn-cache.outputs.cache-hit != 'true'`)
with:
path: ${{ steps.yarn-cache-dir-path.outputs.dir }}
key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }}
restore-keys: |
${{ runner.os }}-yarn-
- name: Install app dependencies and build it
run: yarn && yarn build:fe

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.3_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/ChatGPT_0.6.3_x64.dmg)
- `Linux`: [chat-gpt_0.6.3_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/chat-gpt_0.6.3_amd64.deb)
- `Windows`: [ChatGPT_0.6.3_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/ChatGPT_0.6.3_x64_en-US.msi)
[其他版本...](https://github.com/lencx/ChatGPT/releases)
@@ -73,7 +73,7 @@ cask "popcorn-time", args: { "no-quarantine": true }
- 丰富的快捷键
- 系统托盘悬浮窗
- 应用菜单功能强大
- 支持斜杠命令及其配置(可手动配置或从文件同步)
- 支持斜杠命令及其配置(可手动配置或从文件同步 [#55](https://github.com/lencx/ChatGPT/issues/55)
### 菜单项

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.3_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/ChatGPT_0.6.3_x64.dmg)
- `Linux`: [chat-gpt_0.6.3_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/chat-gpt_0.6.3_amd64.deb)
- `Windows`: [ChatGPT_0.6.3_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.3/ChatGPT_0.6.3_x64_en-US.msi)
[Other version...](https://github.com/lencx/ChatGPT/releases)
@@ -75,7 +75,7 @@ In the chatgpt text input area, type a character starting with `/` to bring up t
- Common shortcut keys
- System tray hover window
- Powerful menu items
- Support for slash commands and their configuration (can be configured manually or synchronized from a file)
- Support for slash commands and their configuration (can be configured manually or synchronized from a file [#55](https://github.com/lencx/ChatGPT/issues/55))
### MenuItem

View File

@@ -1,9 +1,8 @@
# UPDATE LOG
## v0.6.0
## v0.6.3
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.3"
},
"tauri": {
"allowlist": {
@@ -22,7 +22,7 @@
"fs": {
"all": true,
"scope": [
"$HOME/.chatgpt/*"
"**"
]
}
},

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