MiSawa / xq

Pure rust implementation of jq
MIT License
318 stars 18 forks source link

Support cargo-binstall #130

Closed MiSawa closed 2 years ago

MiSawa commented 2 years ago

https://github.com/ryankurte/cargo-binstall

MiSawa commented 2 years ago

I think I have to figure out how to include dependency licenses to GitHub releases before that. (Also make sure binary-distributing xq is compliant to licenses of dependencies)

MiSawa commented 2 years ago

132 adds license information

MiSawa commented 2 years ago

Now it works!

$ cargo binstall xq
16:42:53 [INFO] Installing package: 'xq'
16:42:55 [INFO] Checking for package at: 'https://github.com/MiSawa/xq/releases/download/v0.2.31/xq-v0.2.31-x86_64-unknown-linux-gnu.tar.gz'
16:42:56 [INFO] The package will be downloaded from github.com
16:42:56 [INFO] Downloading package from: 'https://github.com/MiSawa/xq/releases/download/v0.2.31/xq-v0.2.31-x86_64-unknown-linux-gnu.tar.gz'
16:43:05 [INFO] This will install the following binaries:
16:43:05 [INFO]   - xq (xq -> /home/misawa/.cargo/bin/xq-v0.2.31)
16:43:05 [INFO] And create (or update) the following symlinks:
16:43:05 [INFO]   - xq (/home/misawa/.cargo/bin/xq-v0.2.31 -> /home/misawa/.cargo/bin/xq)
16:43:05 [INFO] Do you wish to continue? yes/no
yes
16:43:13 [INFO] Installing binaries...
16:43:13 [INFO] Installation complete!
$ xq --version
xq 0.2.31-0e0e93b0b8f121147751718b5ce8ec53aa5c8886