Skip to content

Commit

Permalink
release
Browse files Browse the repository at this point in the history
  • Loading branch information
lencx committed Jan 15, 2023
1 parent f0c635b commit ef3820f
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 23 deletions.
20 changes: 10 additions & 10 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
12 changes: 6 additions & 6 deletions README-ZH_CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand All @@ -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.

<!-- download end -->
Expand Down
4 changes: 3 additions & 1 deletion scripts/download.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

1 comment on commit ef3820f

@RobMickey
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

over

Please sign in to comment.