mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-25 06:40:03 +00:00
Update SUPPORT.md on bin-dir
default (#811)
Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
parent
93f15ea1c4
commit
7b086bfcbc
1 changed files with 17 additions and 5 deletions
22
SUPPORT.md
22
SUPPORT.md
|
@ -44,12 +44,24 @@ pkg-fmt = "zip"
|
|||
|
||||
### Defaults
|
||||
|
||||
By default, `binstall` will try all supported package formats and would have `bin-dir` set to
|
||||
`"{ name }-{ target }-v{ version }/{ bin }{ binary-ext }"` (where `bin` is the cargo binary name and
|
||||
`binary-ext` is `.exe` on windows and empty on other platforms).
|
||||
By default, `binstall` will try all supported package formats and would do the same for `bin-dir`.
|
||||
|
||||
All binaries must contain a folder named `{ name }-{ target }-v{ version }` (so that prior binary
|
||||
files are not overwritten when manually executing `tar -xvf ...`).
|
||||
It will first extract the archives, then iterate over the following list, finding the first dir
|
||||
that exists:
|
||||
|
||||
- `{ name }-{ target }-v{ version }`
|
||||
- `{ name }-{ target }-{ version }`
|
||||
- `{ name }-{ version }-{ target }`
|
||||
- `{ name }-v{ version }-{ target }`
|
||||
- `{ name }-{ target }`
|
||||
- `{ name }-{ version }`
|
||||
- `{ name }-v{ version }`
|
||||
- `{ name }`
|
||||
|
||||
Then it will concat the dir with `"{ bin }{ binary-ext }"` and use that as the final `bin-dir`.
|
||||
|
||||
`name` here is name of the crate, `bin` is the cargo binary name and `binary-ext` is `.exe`
|
||||
on windows and empty on other platforms).
|
||||
|
||||
The default value for `pkg-url` will depend on the repository of the package.
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue