ouch-org / ouch

Painless compression and decompression in the terminal
https://crates.io/crates/ouch
Other
2.2k stars 75 forks source link

publish to windows winget package manager #583

Open felixsanz opened 9 months ago

felixsanz commented 9 months ago

can you publish on winget package manager please?

AntoniosBarotsis commented 7 months ago

I was doing a bit of reading to figure out what needs to be done for this and man why are these package managers always such a pain to publish to. Anyway, a rough outline of what I found so far:

Also do note that wingetcreate update needs a version to be published beforehand so even if we implemented this now, we would only be able to test the CD job a release later (of course you could also just bump the patch version for the sake of testing).

Lastly, it seems that you can publish installers for all OSes on Winget? Not sure if that's actually the case but also not sure if it would be worth the extra hassle since ouch is already published for a plethora of Linux distros and I doubt anyone not on Windows would use Winget.

It also seems like NuShell has had issues with their CD job because of their binaries being renamed accidentally at one point or another which were apparently hard to debug, it might be a good idea to add sanity checks to prevent this (maybe log errors with something like this?).

marcospb19 commented 6 months ago

can you publish on winget package manager please?

It might be surprising, but Ouch maintainers didn't create a single package for Ouch! That was all done by random people who wanted to help. <3

Thank you so much for the info @AntoniosBarotsis, I'll mark this as "PR-welcome" for anyone who wants to tackle it.

Note: I don't own a Windows environment so I'd expect whoever is making this PR to "check if it works" for us, if it isn't much to ask, also check if it keeps working after the very next Ouch update.