cargo-bins / cargo-binstall

Binary installation for rust projects
GNU General Public License v3.0
1.62k stars 60 forks source link

Can binstall provide an official install.sh template? #1935

Open ahaoboy opened 1 month ago

ahaoboy commented 1 month ago

When adding binstall support to a project, it is complicated and tedious to repeatedly implement an install.sh. If a package can be installed with binstall, is it possible to use a template to generate install.sh instead of writing it manually, just like cargo-dist, but more lightweight?

ahaoboy commented 1 month ago

For projects that support binstall, it means that you don't need a rust environment, you only need to download the corresponding executable file and add it to PATH. Does this mean that a tool can be implemented to install projects that support binstall without a rust environment?

For example

binstall install fnm
NobodyXu commented 1 month ago

Does this mean that a tool can be implemented to install projects that support binstall without a rust environment?

Yes, you could use --disable-strategy compile to prevent fallback to cargo-install