-
Hi, I am busy creating a little script, to always download the latest release from Github, using the Github API: https://api.github.com/repos/microsoft/winget-cli/releases/latest. Somehow the API refers to the previous version: https://github.com/microsoft/winget-cli/releases/download/v1.0.11692/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle instead of https://github.com/microsoft/winget-cli/releases/download/v1.0.12576/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle. Powershell: |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 2 replies
-
This is because https://github.com/microsoft/winget-cli/releases/tag/v1.0.12576 is marked as pre-release in GitHub Releases, so it's not shown in https://api.github.com/repos/microsoft/winget-cli/releases/latest. You can get the pre-release version from https://api.github.com/repos/microsoft/winget-cli/releases (by removing the |
Beta Was this translation helpful? Give feedback.
This is because https://github.com/microsoft/winget-cli/releases/tag/v1.0.12576 is marked as pre-release in GitHub Releases, so it's not shown in https://api.github.com/repos/microsoft/winget-cli/releases/latest.
You can get the pre-release version from https://api.github.com/repos/microsoft/winget-cli/releases (by removing the
/latest
at the end) which will show all of the releases published so far in the winget-cli repository: