mirror of
https://github.com/cargo-bins/cargo-binstall.git
synced 2025-04-21 13:08:42 +00:00
Support default filename with underscores. (#495)
This is the default format used by github action rust-build/rust-build.
This commit is contained in:
parent
087d69da6e
commit
d90547c818
2 changed files with 11 additions and 2 deletions
|
@ -66,9 +66,13 @@ are:
|
||||||
- `{ name }-{ target }-v{ version }{ archive-suffix }`
|
- `{ name }-{ target }-v{ version }{ archive-suffix }`
|
||||||
- `{ name }-{ version }-{ target }{ archive-suffix }`
|
- `{ name }-{ version }-{ target }{ archive-suffix }`
|
||||||
- `{ name }-v{ version }-{ target }{ archive-suffix }`
|
- `{ name }-v{ version }-{ target }{ archive-suffix }`
|
||||||
- `{ name }-{ version }-{ target }{ archive-suffix }`
|
- `{ name }_{ target }_{ version }{ archive-suffix }`
|
||||||
- `{ name }-v{ version }-{ target }{ archive-suffix }`
|
- `{ name }_{ target }_v{ version }{ archive-suffix }`
|
||||||
|
- `{ name }_{ version }_{ target }{ archive-suffix }`
|
||||||
|
- `{ name }_v{ version }_{ target }{ archive-suffix }`
|
||||||
- `{ name }-{ target }{ archive-suffix }` ("versionless")
|
- `{ name }-{ target }{ archive-suffix }` ("versionless")
|
||||||
|
- `{ name }{ archive-suffix }` ("versionless")
|
||||||
|
- `{ name }_{ target }{ archive-suffix }` ("versionless")
|
||||||
|
|
||||||
The paths are:
|
The paths are:
|
||||||
|
|
||||||
|
|
|
@ -18,11 +18,16 @@ pub const FULL_FILENAMES: &[&str] = &[
|
||||||
"{ name }-{ target }-{ version }{ archive-suffix }",
|
"{ name }-{ target }-{ version }{ archive-suffix }",
|
||||||
"{ name }-{ version }-{ target }{ archive-suffix }",
|
"{ name }-{ version }-{ target }{ archive-suffix }",
|
||||||
"{ name }-v{ version }-{ target }{ archive-suffix }",
|
"{ name }-v{ version }-{ target }{ archive-suffix }",
|
||||||
|
"{ name }_{ target }_v{ version }{ archive-suffix }",
|
||||||
|
"{ name }_{ target }_{ version }{ archive-suffix }",
|
||||||
|
"{ name }_{ version }_{ target }{ archive-suffix }",
|
||||||
|
"{ name }_v{ version }_{ target }{ archive-suffix }",
|
||||||
];
|
];
|
||||||
|
|
||||||
pub const NOVERSION_FILENAMES: &[&str] = &[
|
pub const NOVERSION_FILENAMES: &[&str] = &[
|
||||||
"{ name }-{ target }{ archive-suffix }",
|
"{ name }-{ target }{ archive-suffix }",
|
||||||
"{ name }{ archive-suffix }",
|
"{ name }{ archive-suffix }",
|
||||||
|
"{ name }_{ target }{ archive-suffix }",
|
||||||
];
|
];
|
||||||
|
|
||||||
impl RepositoryHost {
|
impl RepositoryHost {
|
||||||
|
|
Loading…
Add table
Reference in a new issue