chafa icon indicating copy to clipboard operation
chafa copied to clipboard

Automate winget releases

Open ykhan21 opened this issue 1 year ago • 7 comments

Chafa was added to winget, but can there be an automated release instead? It would prevent the winget version from lagging behind the current release.

You could automatically push chafa GitHub releases to winget with a GitHub workflow.

In this repo you could create a GitHub Action that publishes to winget on a GitHub release. Example: https://github.com/sxyazi/yazi/pull/1299

Maybe @sitiom could help with this. He created published the original winget manifest.

ykhan21 avatar Jan 16 '25 00:01 ykhan21

Thanks for suggesting this! It sounds like something we can do, but it'd be great to hear what the current publisher thinks first.

hpjansson avatar Jan 16 '25 00:01 hpjansson

In this repo you could create a GitHub Action that publishes to winget on a GitHub release. Example: sxyazi/yazi#1299

Yes, that would work if only the stand-alone executables were available on the GitHub releases (which is not the case right now).

sitiom avatar Jan 16 '25 11:01 sitiom

Hi, @sitiom! Big thanks for adding it to Winget and for maintaining it so far. I've installed Chafa from your distribution on several occasions :-)

The reason I haven't been adding binary releases to GitHub is that it adds complexity to the release process - it's just one more thing I need to keep on a checklist lest I forget to do it. I also prefer a single source for binaries because it's easier to guarantee security that way.

I've noticed some distributors pull the artefacts from the official website, and some have rules to detect when a new version has been dropped.

I have questions:

  • Does Winget have tooling to download from plain https repositories? If so, this may be a better option.
  • Do you know if it's theoretically possible to have the GH action that publishes to Winget download from the official website, instead of from the GH release?

hpjansson avatar Jan 22 '25 18:01 hpjansson

  • Does Winget have tooling to download from plain https repositories? If so, this may be a better option.
  • Do you know if it's theoretically possible to have the GH action that publishes to Winget download from the official website, instead of from the GH release?

Apologies for the late response. Yes, Winget Releaser (the action mentioned above), uses Komac under the hood. There is an alternative action mentioned in the readme that can do that for you: https://github.com/michidk/winget-updater

sitiom avatar Mar 16 '25 03:03 sitiom

FYI, @hpjansson, winget chafa is still version 1.14.5.

ykhan21 avatar Aug 30 '25 17:08 ykhan21

FYI, @hpjansson, winget chafa is still version 1.14.5.

Created a new PR:

  • https://github.com/microsoft/winget-pkgs/pull/288718

sitiom avatar Aug 31 '25 08:08 sitiom

Hey, thanks! It could take me some time to get around to this - I'd accept a PR adding the GH releaser action if it pulls from the official website.

hpjansson avatar Aug 31 '25 20:08 hpjansson