cargo-binstall icon indicating copy to clipboard operation
cargo-binstall copied to clipboard

Custom extension for format

Open passcod opened this issue 3 years ago • 2 comments

Tangentially related to #37.

Currently the Tgz format assumes the .tgz extension, but it might instead be .tar.gz.

In the current state, one may simply not use the { format } specifier for the URL and add the correct extension there directly. However, with some solution to #37 there's going to be a need for this mapping!

passcod avatar Mar 06 '21 09:03 passcod

hmm yeah that's an interesting one, there's also a hack to add .exe for windows binaries, it'd be nice if we could expose both of those in an obvious manner somehow...

i had wondered about a map of target-specific overrides under the configuration so, for example, you would set your path up as a normal template but for windows have a [package.metadata.binstall.target.x86_64-pc-windows-gnu] with a format = "zip", do you think that'd cover this / #37?

ryankurte avatar Mar 06 '21 22:03 ryankurte

That would work 👍

passcod avatar Mar 06 '21 23:03 passcod