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

[npm-installer] support more than tar.gz

Open Gankra opened this issue 1 year ago • 1 comments

cargo-dist currently lets you select your binary archive format:

  • .zip (default windows)
  • .tar.gz
  • .tar.xz (default unix)
  • .tar.zstd

But the npm installer can only handle .tar.gz! This is a limitation inherited from the binary-install npm package (yes the "fork" is the Real One), which in turn inherits the limitation from the npm tar package which in turn inherits the limitation from "node-js bundles a gzip encoder/decoder and that's all we use".

As a workaround I will be making the new interactive UX default to .tar.gz compression if you enable npm installers, but we should really deal with by fixing/forking/ditching binary-install.

Gankra avatar Apr 24 '23 18:04 Gankra