Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 7 additions & 5 deletions .github/workflows/winget.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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:
Expand Down