Skip to content

Commit

Permalink
Update description
Browse files Browse the repository at this point in the history
  • Loading branch information
yanecc committed May 8, 2024
1 parent f1bb5dc commit b24d3e1
Show file tree
Hide file tree
Showing 4 changed files with 26 additions and 20 deletions.
18 changes: 12 additions & 6 deletions .github/workflows/Build for release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-freebsd-x86_64"
artifactErrorsFailBuild: false
Expand Down Expand Up @@ -116,7 +117,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-openbsd-x86_64"
artifactErrorsFailBuild: false
Expand Down Expand Up @@ -184,7 +186,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-linux-arm64"
artifactErrorsFailBuild: false
Expand Down Expand Up @@ -241,7 +244,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-linux-x86_64"
artifactErrorsFailBuild: false
Expand Down Expand Up @@ -300,7 +304,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-windows-x86_64.exe"
artifactErrorsFailBuild: false
Expand Down Expand Up @@ -467,7 +472,8 @@ jobs:
if: github.event_name == 'release'
uses: ncipollo/release-action@v1
with:
name: "MockGPT v${{ github.event.release.tag_name }}"
name: "Latest Executables"
tag: "latest"
allowUpdates: true
artifacts: "${{ env.Executable }}-macos-universal"
artifactErrorsFailBuild: false
Expand Down
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -24,23 +24,23 @@ Quick start on Linux, macOS, FreeBSD and OpenBSD (root required):

``` shell
# macOS arm64/x86_64
sudo curl -L -o /usr/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-macos-universal
sudo curl -L -o /usr/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-macos-universal
sudo chmod +x /usr/bin/mockgpt
# Linux arm64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-linux-arm64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-linux-arm64
sudo chmod +x /usr/local/bin/mockgpt
# Linux x86_64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-linux-x86_64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-linux-x86_64
sudo chmod +x /usr/local/bin/mockgpt
# FreeBSD x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-freebsd-x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-freebsd-x86_64
sudo chmod +x /usr/local/bin/mockgpt
# OpenBSD x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-openbsd-x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-openbsd-x86_64
sudo chmod +x /usr/local/bin/mockgpt
```

The [releases page](https://github.com/yanecc/MockGPT/releases/latest) provides statically compiled binary files and release packages for main platforms. For other platforms and architectures, check [Build for release](https://github.com/yanecc/MockGPT/actions/workflows/Build%20for%20release.yml) first, you may find monthly built products from the artifacts, or will have to install the Crystal language environment and compile it yourself otherwise.
The [releases page](https://github.com/yanecc/MockGPT/releases/latest) provides statically compiled release packages for main platforms. For other platforms and architectures, check [Build for release](https://github.com/yanecc/MockGPT/actions/workflows/Build%20for%20release.yml) first, you may find monthly built products from the artifacts, or will have to install the Crystal language environment and compile it yourself otherwise.

``` shell
git clone https://github.com/yanecc/MockGPT
Expand Down
12 changes: 6 additions & 6 deletions README_zh.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,23 +23,23 @@ Ollama及至少一个大模型

``` shell
# macOS arm64/x86_64
sudo curl -L -o /usr/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-macos-universal
sudo curl -L -o /usr/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-macos-universal
sudo chmod +x /usr/bin/mockgpt
# Linux arm64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-linux-arm64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-linux-arm64
sudo chmod +x /usr/local/bin/mockgpt
# Linux x86_64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-linux-x86_64
sudo curl -L -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-linux-x86_64
sudo chmod +x /usr/local/bin/mockgpt
# FreeBSD x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-freebsd-x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-freebsd-x86_64
sudo chmod +x /usr/local/bin/mockgpt
# OpenBSD x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-openbsd-x86_64
sudo fetch -o /usr/local/bin/mockgpt https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-openbsd-x86_64
sudo chmod +x /usr/local/bin/mockgpt
```

[发布页面](https://github.com/yanecc/MockGPT/releases/latest)为主流平台提供了静态编译的MockGPT程序和发行包,若在其他平台使用,首先查看[Build for release](https://github.com/yanecc/MockGPT/actions/workflows/Build%20for%20release.yml),那里可能有每月构建的版本,若没有则需要安装Crystal语言环境自行编译。
[发布页面](https://github.com/yanecc/MockGPT/releases/latest)为主流平台提供了静态编译的MockGPT发行包,若在其他平台使用,首先查看[Build for release](https://github.com/yanecc/MockGPT/actions/workflows/Build%20for%20release.yml),那里可能有每月构建的版本,若没有则需要安装Crystal语言环境自行编译。

``` shell
git clone https://github.com/yanecc/MockGPT
Expand Down
4 changes: 2 additions & 2 deletions src/mockgpt/commands.cr
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ module Commands
{% if flag?(:windows) && flag?(:x86_64) %}
File.rename(exePath, tempPath)
batchPath = File.join(File.dirname(exePath), ".upgrade.bat")
url = "https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-windows-x86_64.exe"
url = "https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-windows-x86_64.exe"

wait_channel = Channel(Nil).new
Process.on_terminate do |reason|
Expand Down Expand Up @@ -50,7 +50,7 @@ module Commands
exit 1
end
{% else %}
url = "https://github.com/yanecc/MockGPT/releases/latest/download/mockgpt-"
url = "https://github.com/yanecc/MockGPT/releases/download/latest/mockgpt-"
{% if flag?(:darwin) %}
url += "macos-universal"
{% elsif flag?(:freebsd) && flag?(:x86_64) %}
Expand Down

0 comments on commit b24d3e1

Please sign in to comment.