axodotdev / cargo-dist

📦 shippable application packaging
https://axodotdev.github.io/cargo-dist/
Apache License 2.0
1.46k stars 64 forks source link

hint-only installers #72

Open Gankra opened 1 year ago

Gankra commented 1 year ago

It would be nice to have:

Which produce installer hints without any need for any physical artifact. This requires some way to tell the reader of the dist-manifest that no such artifact exists, only the hint/description.

Gankra commented 1 year ago

I made Artifact::name optional to future-proof against this -- it being None will signal the artifact is purely informative and has no physical files.

Gankra commented 1 year ago

Note that oranda has a builtin feature for this, reducing the pressure to add this for the cargo-dist+oranda tag-team. It's called "package_managers" and is basically a string => string map it will forward verbatim.

https://github.com/axodotdev/oranda/blob/cec1092d39cf191be661c4ab9352c61447f28833/oranda.json#L17-L19

Gankra commented 1 year ago

Probably all the work for this will go into oranda at this point.