From 44c91bc85c8d624e0a155c736a4f52bdd04caf9b Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 21:56:16 +0800 Subject: [PATCH 1/6] fix: path not allowed on the configured scope --- .github/workflows/release.yml | 4 ++-- src-tauri/tauri.conf.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 32d67d5..8a08347 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: shell: bash run: | echo "using version tag ${GITHUB_REF:10}" - echo ::set-output name=version::"${GITHUB_REF:10}" + echo ::save-state name=version::"${GITHUB_REF:10}" - name: Create Release id: create_release @@ -63,7 +63,7 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::set-output name=dir::$(yarn config get cacheFolder)" + run: echo "::save-state name=dir::$(yarn config get cacheFolder)" - name: Yarn cache uses: actions/cache@v2 diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 27fb444..df076a0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -22,7 +22,7 @@ "fs": { "all": true, "scope": [ - "$HOME/**" + "**" ] } }, From 3ca66cf309aeb3ee652ed8d117cce03356f962e4 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 21:56:45 +0800 Subject: [PATCH 2/6] v0.6.3 --- UPDATE_LOG.md | 2 +- src-tauri/tauri.conf.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/UPDATE_LOG.md b/UPDATE_LOG.md index 8367d0a..9f5cc61 100644 --- a/UPDATE_LOG.md +++ b/UPDATE_LOG.md @@ -1,6 +1,6 @@ # UPDATE LOG -## v0.6.2 +## v0.6.3 fix: path not allowed on the configured scope diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index df076a0..0341f72 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ChatGPT", - "version": "0.6.2" + "version": "0.6.3" }, "tauri": { "allowlist": { From bd2c4fff5c81957d25bf46f0fe66fabbe1bc1e67 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 22:10:27 +0800 Subject: [PATCH 3/6] fix: action --- .github/workflows/release.yml | 10 +++++----- README-ZH_CN.md | 6 +++--- README.md | 6 +++--- 3 files changed, 11 insertions(+), 11 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 8a08347..a331d32 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -19,7 +19,7 @@ jobs: shell: bash run: | echo "using version tag ${GITHUB_REF:10}" - echo ::save-state 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: @@ -63,13 +63,13 @@ jobs: - name: Get yarn cache directory path id: yarn-cache-dir-path - run: echo "::save-state name=dir::$(yarn config get cacheFolder)" + run: echo "yarndir=$(yarn config get cacheFolder)" >> $GITHUB_ENV - 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 }} + path: ${{ env.yarndir }} key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} restore-keys: | ${{ runner.os }}-yarn- diff --git a/README-ZH_CN.md b/README-ZH_CN.md index f914392..19e523e 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -22,9 +22,9 @@ **最新版:** -- `Mac`: [ChatGPT_0.6.2_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/ChatGPT_0.6.2_x64.dmg) -- `Linux`: [chat-gpt_0.6.2_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/chat-gpt_0.6.2_amd64.deb) -- `Windows`: [ChatGPT_0.6.2_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/ChatGPT_0.6.2_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) diff --git a/README.md b/README.md index e047147..74a9526 100644 --- a/README.md +++ b/README.md @@ -24,9 +24,9 @@ **Latest:** -- `Mac`: [ChatGPT_0.6.2_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/ChatGPT_0.6.2_x64.dmg) -- `Linux`: [chat-gpt_0.6.2_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/chat-gpt_0.6.2_amd64.deb) -- `Windows`: [ChatGPT_0.6.2_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.6.2/ChatGPT_0.6.2_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) From eaf72e2b732b5ef7708c3aec63feaaaa45f83979 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 22:23:35 +0800 Subject: [PATCH 4/6] fix: action --- .github/workflows/release.yml | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a331d32..de6aa5d 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 "yarndir=$(yarn config get cacheFolder)" >> $GITHUB_ENV - - - 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: ${{ env.yarndir }} - key: ${{ runner.os }}-yarn-${{ hashFiles('**/yarn.lock') }} - restore-keys: | - ${{ runner.os }}-yarn- - - name: Install app dependencies and build it run: yarn && yarn build:fe From d7328f576a1f1acdbd4f59c6628e9763651195b3 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 22:27:37 +0800 Subject: [PATCH 5/6] v0.6.3 --- 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 0341f72..df076a0 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ChatGPT", - "version": "0.6.3" + "version": "0.6.2" }, "tauri": { "allowlist": { From ca3badc7833487a321fafa6087aeb2a55f9a59c6 Mon Sep 17 00:00:00 2001 From: lencx Date: Fri, 23 Dec 2022 22:27:46 +0800 Subject: [PATCH 6/6] v0.6.3 --- 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 df076a0..0341f72 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -7,7 +7,7 @@ }, "package": { "productName": "ChatGPT", - "version": "0.6.2" + "version": "0.6.3" }, "tauri": { "allowlist": {