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
4 changes: 2 additions & 2 deletions Zulip.ps1
Original file line number Diff line number Diff line change
@@ -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 '(?<version>\d+(\.\d+)+)'
Expand Down Expand Up @@ -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'"
}
}