From 2226c8c2789510b164c0338724fdbbb7935075d3 Mon Sep 17 00:00:00 2001 From: wuyangji <694410194@qq.com> Date: Thu, 14 May 2026 03:59:51 +0800 Subject: [PATCH] =?UTF-8?q?fix(ci):=20=E4=BF=AE=E6=AD=A3=20winget=20?= =?UTF-8?q?=E5=8F=91=E5=B8=83=E8=B5=84=E6=BA=90=E4=B8=8E=E4=BB=93=E5=BA=93?= =?UTF-8?q?=E9=93=BE=E6=8E=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .github/workflows/winget.yml | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/.github/workflows/winget.yml b/.github/workflows/winget.yml index 6934c2523..b6034442d 100644 --- a/.github/workflows/winget.yml +++ b/.github/workflows/winget.yml @@ -38,14 +38,15 @@ jobs: run: | $tag = "v${{ steps.version.outputs.version }}" $baseUrl = "https://github.com/${{ github.repository }}/releases/download/$tag" + $repoUrl = "https://github.com/${{ github.repository }}" # Download and hash x64 - $x64Url = "$baseUrl/cortex-windows-x64.zip" + $x64Url = "$baseUrl/cortex-cli-windows-x64.zip" Invoke-WebRequest -Uri $x64Url -OutFile "cortex-x64.zip" -ErrorAction Stop $x64Hash = (Get-FileHash -Path "cortex-x64.zip" -Algorithm SHA256).Hash # Download and hash arm64 - $arm64Url = "$baseUrl/cortex-windows-arm64.zip" + $arm64Url = "$baseUrl/cortex-cli-windows-arm64.zip" try { Invoke-WebRequest -Uri $arm64Url -OutFile "cortex-arm64.zip" -ErrorAction Stop $arm64Hash = (Get-FileHash -Path "cortex-arm64.zip" -Algorithm SHA256).Hash @@ -54,6 +55,7 @@ jobs: $arm64Url = "" } + echo "repo_url=$repoUrl" >> $env:GITHUB_OUTPUT echo "x64_url=$x64Url" >> $env:GITHUB_OUTPUT echo "x64_hash=$x64Hash" >> $env:GITHUB_OUTPUT echo "arm64_url=$arm64Url" >> $env:GITHUB_OUTPUT @@ -125,11 +127,11 @@ jobs: PackageLocale: en-US Publisher: CortexLM PublisherUrl: https://github.com/CortexLM - PublisherSupportUrl: https://github.com/CortexLM/cortex-cli/issues + PublisherSupportUrl: ${{ steps.release.outputs.repo_url }}/issues PackageName: Cortex CLI - PackageUrl: https://github.com/CortexLM/cortex-cli + PackageUrl: ${{ steps.release.outputs.repo_url }} License: Apache-2.0 - LicenseUrl: https://github.com/CortexLM/cortex-cli/blob/master/LICENSE + LicenseUrl: ${{ steps.release.outputs.repo_url }}/blob/main/LICENSE ShortDescription: Cortex CLI - A modern AI coding agent Description: Cortex is a powerful command-line AI coding assistant that helps developers write, debug, and maintain code more efficiently. Tags: