Skip to content

Use more sane compressed tarball for the Linux binary releases #21890

@shmerl

Description

@shmerl

Current binary release in the tag for instance rust-analyzer-x86_64-unknown-linux-gnu.gz has a superfluous name and being simply a gzip wrapper doesn't have any attirbutes like being actually an executable so when unpacking I always need to:

  • Unpack .gz
  • Rename the file to rust-analyzer
  • give it an executbale flag

It would be better if rust-analyzer was wrapped into tar (to preserve the executable flag), which then can be compressed with something more modern likt zstd, rather than .gz.

Example how to compress:

Source: rust-analyzer

tar --create --verbose --use-compress-program "zstd --threads=$(nproc) -19 --verbose" --file rust-analyzer.tar.zst rust-analyzer

Or more simply:

tar -caf rust-analyzer.tar.zst rust-analyzer

Result: rust-analyzer.tar.zst

Example how to decompress:

tar --extract --verbose --use-compress-program "zstd --threads=$(nproc) --decompress --verbose" --file rust-analyzer.tar.zst

Or more simply:

tar -xvf rust-analyzer.tar.zst

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-infraCI and workflow issuesC-featureCategory: feature request

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions