mgdm / htmlq

Like jq, but for HTML.
MIT License
7k stars 107 forks source link

How to install this #8

Closed alexanderkoponen closed 2 years ago

alexanderkoponen commented 3 years ago

Could you please write a couple of lines, in the README.md how one can download, compile and install this? As it is now, I believe that only a Rust native knows how to install this.

infostreams commented 2 years ago

I just want to do brew install htmlq to be honest...

esamattis commented 2 years ago

Install Rust tools https://www.rust-lang.org/learn/get-started

Eg. on macOS run

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Open new terminal

git clone https://github.com/mgdm/htmlq.git
cd htmlq
cargo build --release

And you'll find the binary from target/release/htmlq

infostreams commented 2 years ago

I got one of my own repositories accepted into Homebrew, but it wasn't as straightforward as I'd hoped. Here's some text on how it can be achieved by (apparently) adding a single file into the repository: https://rust-cli.github.io/book/tutorial/packaging.html#getting-your-app-into-package-repositories