diff --git a/Zulip.ps1 b/Zulip.ps1 index d7111b5..f381858 100644 --- a/Zulip.ps1 +++ b/Zulip.ps1 @@ -1,7 +1,7 @@ Write-Host "Fetching latest release information from Github" $latestrelease = (Invoke-RestMethod -Uri "https://api.github.com/repos/zulip/zulip-desktop/releases/latest").assets | - Where-Object { $_.name -match 'msi'} + Where-Object { $_.name -match 'x64.msi'} $binary = $latestrelease.name $null = $latestrelease.name -match '(?\d+(\.\d+)+)' @@ -50,4 +50,4 @@ if ([version]$($currentVersion.Version) -lt $Version) { Write-host "Validate nupkg is correct" Get-ChildItem $env:Build_ArtifactStagingDirectory -filter *.nupkg choco push $((Get-ChildItem $env:Build_ArtifactStagingDirectory -filter zulip.*.nupkg).FullName) -s https://push.chocolatey.org --api-key="'$env:ChocolateyKey'" -} \ No newline at end of file +}