task
task copied to clipboard
Add winget to the list of managed package managers
As winget is bundled in the latest versions of Win 10 & 11, it would be nice if it was supported.
As I haven't been using Windows often recently, so I don't plan to work on this soon.
That said, if anyone has instructions on how to proceed to do that, or perhaps even want to contribute with this, please let me know.
Hee is a golang program that deploys to winget
The github workflow: https://github.com/JanDeDobbeleer/oh-my-posh/blob/main/.github/workflows/winget.yml SO you can run the deployment in CI, without using Windows locally.
The config for it: https://github.com/JanDeDobbeleer/oh-my-posh/tree/main/packages/winget
+1 on this!
There's also a GitHub Action to make things easier; the only small issue is that it needs one version of the app already on the repository, so the first upload has to be done manually.
https://github.com/vedantmgoyal2009/winget-manifests-manager. https://github.com/vedantmgoyal2009/winget-releaser
These do it for you.
This was already done, just this issue forgotten open.
See:
- https://taskfile.dev/installation/#winget
- https://github.com/go-task/task/pull/1090
- https://github.com/microsoft/winget-pkgs/tree/master/manifests/t/Task/Task
AFAIU task is indeed on winget, but new releases do not get added to the winget-pkgs repo automatically. Or have I missed something?
The latter, i.e. goreleaser submitting updated manifests for new releases to the winget-pkgs repo, is what my comment above was about.
I thought people on Microsoft would deal with new releases, but it seems I'm wrong. We didn't implement this support, they did.
But given Goreleaser in theory supports opening a PR automatically, I'll take a look at setting that up.
As a quick note, I opened a new PR using Komac^1 for Task 3.28.0 (microsoft/winget-pkgs#113284).
Whether GoReleaser or Komac, it would be great if this could be automated on existing workflows.
I thought people on Microsoft would deal with new releases, but it seems I'm wrong. We didn't implement this support, they did.
AFAICT only (surprisingly) few winget manifests get submitted to the repo by Microsoft employees, most is done by "the community". I, for one, submitted manifests for programs that I wanted to be able to manage with winget. The manifests for Task were not submitted by Microsoft either (again AFAICT).
I just configured GoReleaser to open PRs automatically to winget: ae135f52037eea2fc6bb1188f3cf336b97360a64.
Let's see if it works. This is something I'll only be certain it really works when trying to use it, i.e., on the next release.
Is anybody having issues with the installation from winget? I'm not seeing any release after the 3.28 one.