diff --git a/.github/workflows/Build for release.yml b/.github/workflows/Build for release.yml index d5abe50..fa9cfa4 100644 --- a/.github/workflows/Build for release.yml +++ b/.github/workflows/Build for release.yml @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 @@ -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 diff --git a/README.md b/README.md index d36ea8a..7202206 100644 --- a/README.md +++ b/README.md @@ -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 diff --git a/README_zh.md b/README_zh.md index 01e6450..1c216dc 100644 --- a/README_zh.md +++ b/README_zh.md @@ -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 diff --git a/src/mockgpt/commands.cr b/src/mockgpt/commands.cr index 0c7ca2c..6e463a2 100644 --- a/src/mockgpt/commands.cr +++ b/src/mockgpt/commands.cr @@ -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| @@ -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) %}