Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Oneliner to install xh under Windows #219

Closed
henno opened this issue Jan 12, 2022 · 3 comments
Closed

Oneliner to install xh under Windows #219

henno opened this issue Jan 12, 2022 · 3 comments

Comments

@henno
Copy link
Contributor

henno commented Jan 12, 2022

Httpie is much more complicated to install under Windows than under Linux and Mac. Xh is somewhat easier but it still involves many manual steps compared to Linux and Mac (downloading the release, extracting it, putting the executable into PATH, installing the VS C++ Redistributable).

It would be super awesome if there was a oneliner command to install under Windows as well.

@ChrisK-0
Copy link
Contributor

Made a Powershell file and added a one-liner to readme for the repository. If it gets accepted then try that.
#220

@ducaale
Copy link
Owner

ducaale commented Jan 12, 2022

We can work around the VS C++ Redistributable issue by statically linking the C runtime. See BurntSushi/ripgrep#1613 for an example.

As for the remaining installation steps, have you tried using Scoop package manager to install xh instead? Most of the well-known rust-based CLI tools are available in the Main bucket of Scoop.

@ducaale
Copy link
Owner

ducaale commented Jan 27, 2022

Thanks to @ChrisK-0, you can now install xh by issuing the following command in PowerShell:

iwr -useb https://raw.githubusercontent.com/ducaale/xh/master/install.ps1 | iex

We have also started to statically link the C runtime, starting with xh v0.15.0. That should remove the need for installing VS C++ Redistributable.

@ducaale ducaale closed this as completed Jan 27, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants