zoxide icon indicating copy to clipboard operation
zoxide copied to clipboard

Windows installation via WinGet

Open spencerwooo opened this issue 4 years ago • 12 comments

Anything planned for Windows? Preferably: installation via WinGet/Scoop, publishing Windows binaries alongside Linux/macOS on GitHub release, etc.

spencerwooo avatar May 31 '20 13:05 spencerwooo

Absolutely! It may take a while since I'm not familiar with packaging on Windows - if you have experience, I'd appreciate any help!

ajeetdsouza avatar May 31 '20 15:05 ajeetdsouza

I believe for zoxide to take advantage of installing via Scoop/WinGet, we must first setup build scripts for Windows on GitHub release. I'll make a PR for the GitHub Action CI first, and if all goes well, I'll poke around and try adding zoxide to Scoop/WinGet's repo next.

(Sorry for the late response...I've been extra busy.)

spencerwooo avatar Jun 11 '20 14:06 spencerwooo

Regarding CI, I think it might be better to switch over to the trust project. It has testing, releases on multiple architectures, and a shell-based install script.

I've already done some work on this, I'll ping you here once it's done!

ajeetdsouza avatar Jun 11 '20 14:06 ajeetdsouza

Ok, so we won't be using GitHub Actions anymore?

spencerwooo avatar Jun 11 '20 14:06 spencerwooo

Probably not - if trust takes care of deployment and installation of binaries, I think we should shift to what they're using.

ajeetdsouza avatar Jun 11 '20 15:06 ajeetdsouza

@spencerwooo it appears trust's install script relies on rustc unless target is explicitly specified. IMHO, this defeats its purpose.

I think we can go ahead with GitHub Actions for now. Feel free to send in a PR once you have the time!

ajeetdsouza avatar Jun 11 '20 16:06 ajeetdsouza

winget support is currently waiting on https://github.com/microsoft/winget-cli/issues/182 / https://github.com/microsoft/winget-cli/issues/140.

ajeetdsouza avatar Jul 14 '20 21:07 ajeetdsouza

I just created a pull request over at scoop's main bucket for zoxide version 0.4.3. If merged, we'll be able to install zoxide with a simple command on Windows:

scoop install zoxide

I'll update the documentations here (if that's ok with you) once it's merged upstream.

spencerwooo avatar Jul 27 '20 09:07 spencerwooo

Looks great. Thank you!

ajeetdsouza avatar Jul 27 '20 09:07 ajeetdsouza

I just tried installing this via scoop, but I'm unfortunately hitting a hash check failure. Is this something I should report to the Scoop team or is it suitable reporting it here?

image

EDIT: Never mind, it's already been reported to Scoop! https://github.com/ScoopInstaller/Main/issues/2285

mhetrick avatar Jun 15 '21 16:06 mhetrick

@spencerwooo can you please close this issue?

ditsuke avatar Dec 12 '21 11:12 ditsuke

@ditsuke I left the issue open because zoxide hasn't been added to WinGet yet. Currently, it's blocked on https://github.com/microsoft/winget-cli/issues/140, but once that happens, I'll close the issue.

ajeetdsouza avatar Dec 12 '21 12:12 ajeetdsouza

Support for portable exes has been merged into Winget. Tracking the package request here: https://github.com/microsoft/winget-pkgs/issues/80892

ajeetdsouza avatar Sep 27 '22 21:09 ajeetdsouza

It's coming!

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

Once the PR has been merged, Winget Releaser must be set up in this repo to push automatic manifest updates. @ajeetdsouza Are you good with that?

sitiom avatar Jan 26 '23 15:01 sitiom

Yeah, that sounds great!

ajeetdsouza avatar Jan 26 '23 17:01 ajeetdsouza

zoxide now available on winget

image

Installed successfully. Thanks @sitiom !

kingyue737 avatar Jan 31 '23 02:01 kingyue737

For the Winget Releaser workflow, https://github.com/vedantmgoyal2009/winget-releaser/issues/82 would have to be resolved first.

sitiom avatar Jan 31 '23 03:01 sitiom

Thanks @sitiom, really appreciate your work on this! I'll close this issue for now, but I'd be very happy to merge a later PR for auto-updating the package on winget.

ajeetdsouza avatar Jan 31 '23 05:01 ajeetdsouza