Commit graph

32 commits

Author SHA1 Message Date
Félix Saparelli
6ab55d9dda
Fix arm64 linux URL 2022-06-01 01:46:28 +12:00
Félix Saparelli
aa4339e07d
Expose crate::errors module 2022-06-01 00:29:17 +12:00
Félix Saparelli
d21c4a0875
Add link to error code descriptions 2022-06-01 00:29:17 +12:00
Jiahao XU
a59057b932
Update README.md: Tar.zst is now supported by cargo-binstall
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
2022-05-31 16:59:00 +10:00
Félix Saparelli
2f9be15c30
Fix old template specifier in readme 2022-05-31 18:01:29 +12:00
Lea Fairbanks
19d0616324
Add cli overrides 2022-05-31 18:00:07 +12:00
Félix Saparelli
bee95cdb27
Fix markdown 2022-05-31 17:24:52 +12:00
Félix Saparelli
22f509fb72
Add macos arm64 to readme 2022-05-31 17:24:42 +12:00
Félix Saparelli
c1fd2398f0
Add linux arm64 to readme 2022-05-31 17:24:04 +12:00
Félix Saparelli
3a1d42fd6b
Default to musl builds on the readme 2022-05-31 17:19:56 +12:00
Félix Saparelli
dd33a1d66e Mention source fallback in readme 2022-04-29 10:21:09 +12:00
Félix Saparelli
6dcb1dd1b4
Split {format} and allow use of {binary-ext} in pkg-url (#95)
This from feedback in #19:

> wrt. bin-dir and bin-path, this appears to be a typo / should all be called bin-dir

This is only a readme fix afaict, I changed all occurences of `bin-path` in there to `bin-dir`.

> wrt. format, those are actually two (unfortunately named) different concepts, the first
refers to the archive format (eg. .tgz), the second to the binary format (which needs a .exe
appended for windows).

This introduces two new substitutions:
- `binary-ext` is the old "`format` in `bin-dir`"
- `archive-format` is the old "`format` in `pkg-url`"

Contents are unchanged: `binary-ext` includes the dot, `archive-format` doesn't. That
makes it easy to upgrade and also personally I slightly prefer it that way.

The old contextual `format` is still available, "soft deprecated": it will be accepted silently
so everything will work, but all documentation will use the new syntax. In the future we
could move to a "hard deprecated" model where installing a package that uses `format`
will warn the user / tell them to report that to the maintainer. I don't think we'll ever really
be able to remove it but that should be good enough.

A cool new feature is that `binary-ext` is now usable in `pkg-url`, which will be useful for raw binary downloads:

```toml
pkg_url = "{ repo }/releases/download/v{ version }/{ name }-v{ version }-{ target }{ binary-ext }"
```

I've also added a bunch of tests to GhCrateMeta around the templating for `pkg-url`.
2022-02-16 16:18:35 +13:00
Félix Saparelli
370ae05620
QuickInstall support (#94)
See this issue: https://github.com/alsuren/cargo-quickinstall/issues/27

Quick Install is a hosted repo of built crates, essentially. The approach I've taken here is
a list of strategies:

1. First, we check the crate meta or default and build the URL to the repo. Once we have
   that, we perform a `HEAD` request to the URL to see if it's available.
2. If it's not, we build the URL to the quickinstall repo, and perform a `HEAD` to there.

As soon as we've got a hit, we use that. I've built it so it's extensible with more strategies.
This could be useful for #4.

This also adds a prompt before downloading from third-party sources, and logs a short
name for a source, which is easier to glance than a full URL, and includes a quick refactor
of the install/link machinery.
2022-02-16 14:49:07 +13:00
Ryan
8b4e77918c
Update README.md
Add curl commands for fetching latest release archives to readme
2021-10-22 18:45:51 +13:00
pinage404
71c6b0d209 fix: typo 2021-10-17 12:45:53 +02:00
ryan
76a7fb00c9 add pkg-url and pkg-fmt overrides 2021-04-08 21:26:44 +12:00
ryan
1c25b1346f added zip support, pkg-fmt override
swapped CI to build zips for windows
2021-04-08 18:39:54 +12:00
Félix Saparelli
9c06ca94cb
Add support for Txz archives 2021-03-06 22:35:05 +13:00
Ryan
6d18b7bb1e
Update README.md 2021-01-01 10:16:00 +13:00
Ryan
3f4088657d
Update README.md 2021-01-01 09:36:52 +13:00
ryan
fd16c171e2 update readme, reorder tests 2020-12-31 20:27:34 +13:00
ryan
3810603457 update readme, allow self updating 2020-12-31 17:28:39 +13:00
ryan
b7b8f36109 Merge branch 'main' of github.com:ryankurte/cargo-binstall into main 2020-12-31 17:18:00 +13:00
ryan
31900e0164 fix docs link in readme, add to cargo.toml 2020-12-31 17:17:39 +13:00
ryan
a6c70b41e2 the big refactor 2020-12-31 14:41:52 +13:00
ryan
8f7f7f5530 refactoring to library 2020-12-30 15:27:39 +13:00
ryan
7453919a10 re-work readme, add examples for william 2020-12-17 16:07:43 +13:00
ryan
6bba72aead smol readme change 2020-12-14 21:47:43 +13:00
ryan
b031f79e1f switch to rustls, fix windows build 2020-12-14 20:58:39 +13:00
ryan
f01fab7de7 fix default branch name 2020-12-14 20:47:57 +13:00
ryan
4c520c51c8 update readme with status: 2020-12-14 20:46:33 +13:00
ryan
d31364f5da Rough first attempt 2020-12-14 20:43:51 +13:00