task icon indicating copy to clipboard operation
task copied to clipboard

Add winget to the list of managed package managers

Open gicastel opened this issue 3 years ago • 2 comments
trafficstars

As winget is bundled in the latest versions of Win 10 & 11, it would be nice if it was supported.

gicastel avatar May 20 '22 11:05 gicastel

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.

andreynering avatar May 23 '22 12:05 andreynering

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

gedw99 avatar May 24 '22 12:05 gedw99

+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.

sanzoghenzo avatar Feb 23 '23 09:02 sanzoghenzo

https://github.com/vedantmgoyal2009/winget-manifests-manager. https://github.com/vedantmgoyal2009/winget-releaser

These do it for you.

gedw99 avatar Feb 23 '23 09:02 gedw99

goreleaser recently gained winget support

see chezmoi for an implementation

dpprdan avatar Jul 19 '23 19:07 dpprdan

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

andreynering avatar Jul 19 '23 19:07 andreynering

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.

dpprdan avatar Jul 19 '23 19:07 dpprdan

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.

andreynering avatar Jul 19 '23 20:07 andreynering

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.

eitsupi avatar Jul 27 '23 06:07 eitsupi

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).

dpprdan avatar Jul 27 '23 14:07 dpprdan

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.

andreynering avatar Aug 10 '23 01:08 andreynering

Is anybody having issues with the installation from winget? I'm not seeing any release after the 3.28 one.

gicastel avatar Sep 29 '23 06:09 gicastel