diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 79f1a96e2..3913b95e3 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -90,13 +90,13 @@ jobs: publish_dir: ./updater force_orphan: true - publish-winget: - # Action can only be run on windows - runs-on: windows-latest - needs: [create-release, build-tauri] - steps: - - uses: vedantmgoyal2009/winget-releaser@v1 - with: - identifier: lencx.ChatGPT - token: ${{ secrets.WINGET_TOKEN }} - version: ${{ env.version }} + # publish-winget: + # # Action can only be run on windows + # runs-on: windows-latest + # needs: [create-release, build-tauri] + # steps: + # - uses: vedantmgoyal2009/winget-releaser@v1 + # with: + # identifier: lencx.ChatGPT + # token: ${{ secrets.WINGET_TOKEN }} + # version: ${{ env.version }} diff --git a/README-ZH_CN.md b/README-ZH_CN.md index 56b91ad49..88907a67f 100644 --- a/README-ZH_CN.md +++ b/README-ZH_CN.md @@ -24,7 +24,7 @@ ### Windows -- [ChatGPT_0.9.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT_0.9.0_x64_en-US.msi): +- [ChatGPT_0.9.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT_0.9.1_x64_en-US.msi): - 使用 [winget](https://winstall.app/apps/lencx.ChatGPT): ```bash # install the latest version @@ -34,12 +34,12 @@ winget install --id=lencx.ChatGPT -e --version 0.9.0 ``` -**注意:如果安装路径和应用名称相同,会导致冲突 ([#142](https://github.com/lencx/ChatGPT/issues/142#issuecomment-0.9.0))** +**注意:如果安装路径和应用名称相同,会导致冲突 ([#142](https://github.com/lencx/ChatGPT/issues/142#issuecomment-0.9.1))** ### Mac -- [ChatGPT_0.9.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT_0.9.0_x64.dmg) -- [ChatGPT.app.tar.gz](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT.app.tar.gz) +- [ChatGPT_0.9.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT_0.9.1_x64.dmg) +- [ChatGPT.app.tar.gz](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT.app.tar.gz) - Homebrew \ _[Homebrew 快捷安装](https://brew.sh) ([Cask](https://docs.brew.sh/Cask-Cookbook)):_ ```sh @@ -55,8 +55,8 @@ ### Linux -- [chat-gpt_0.9.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/chat-gpt_0.9.0_amd64.deb) -- [chat-gpt_0.9.0_amd64.AppImage](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/chat-gpt_0.9.0_amd64.AppImage): **工作可靠,`.deb` 运行失败时可以尝试它** +- [chat-gpt_0.9.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/chat-gpt_0.9.1_amd64.deb) +- [chat-gpt_0.9.1_amd64.AppImage](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/chat-gpt_0.9.1_amd64.AppImage): **工作可靠,`.deb` 运行失败时可以尝试它** - 使用 [AUR](https://aur.archlinux.org/packages/chatgpt-desktop-bin): ```bash yay -S chatgpt-desktop-bin diff --git a/README.md b/README.md index 6011a614a..1884020dd 100644 --- a/README.md +++ b/README.md @@ -26,7 +26,7 @@ ### Windows -- [ChatGPT_0.9.0_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT_0.9.0_x64_en-US.msi): Direct download installer +- [ChatGPT_0.9.1_x64_en-US.msi](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT_0.9.1_x64_en-US.msi): Direct download installer - Use [winget](https://winstall.app/apps/lencx.ChatGPT): ```bash # install the latest version @@ -36,12 +36,12 @@ winget install --id=lencx.ChatGPT -e --version 0.9.0 ``` -**Note: If the installation path and application name are the same, it will lead to conflict ([#142](https://github.com/lencx/ChatGPT/issues/142#issuecomment-0.9.0))** +**Note: If the installation path and application name are the same, it will lead to conflict ([#142](https://github.com/lencx/ChatGPT/issues/142#issuecomment-0.9.1))** ### Mac -- [ChatGPT_0.9.0_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT_0.9.0_x64.dmg): Direct download installer -- [ChatGPT.app.tar.gz](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/ChatGPT.app.tar.gz): Download the `.app` installer +- [ChatGPT_0.9.1_x64.dmg](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT_0.9.1_x64.dmg): Direct download installer +- [ChatGPT.app.tar.gz](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/ChatGPT.app.tar.gz): Download the `.app` installer - Homebrew \ Or you can install with _[Homebrew](https://brew.sh) ([Cask](https://docs.brew.sh/Cask-Cookbook)):_ ```sh @@ -57,8 +57,8 @@ ### Linux -- [chat-gpt_0.9.0_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/chat-gpt_0.9.0_amd64.deb): Download `.deb` installer, advantage small size, disadvantage poor compatibility -- [chat-gpt_0.9.0_amd64.AppImage](https://github.com/lencx/ChatGPT/releases/download/v0.9.0/chat-gpt_0.9.0_amd64.AppImage): Works reliably, you can try it if `.deb` fails to run +- [chat-gpt_0.9.1_amd64.deb](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/chat-gpt_0.9.1_amd64.deb): Download `.deb` installer, advantage small size, disadvantage poor compatibility +- [chat-gpt_0.9.1_amd64.AppImage](https://github.com/lencx/ChatGPT/releases/download/v0.9.1/chat-gpt_0.9.1_amd64.AppImage): Works reliably, you can try it if `.deb` fails to run - Available on [AUR](https://aur.archlinux.org/packages/chatgpt-desktop-bin) with the package name `chatgpt-desktop-bin`, and you can use your favourite AUR package manager to install it. diff --git a/scripts/download.js b/scripts/download.js index 5ed93f41a..86a55fe0d 100644 --- a/scripts/download.js +++ b/scripts/download.js @@ -13,7 +13,9 @@ async function rewrite(filename) { flag = true; } if (flag) { - content[i] = content[i].replace(/(\d+).(\d+).(\d+)/g, argv[0]); + if (!/winget install --id=lencx.ChatGPT -e --version/.test(content[i])) { + content[i] = content[i].replace(/(\d+).(\d+).(\d+)/g, argv[0]); + } } if (endRe.test(content[i])) { break;