Skip to content

[Feature] Support .tar.gz #57

@ktwrd

Description

@ktwrd

For installing versions via the archive (used by InstallWorkflow), it should support more compression formats.

Currently, beans-rs only supports .tar.zstd files, but it should also support other formats.

To keep it simple, the next archive format to support should be the .tar.gz format since it's super common.

The flate2 library can be used to add gzip compression support for tarball archives.

This logic should be added in the extract_package function in ctx.rs, and it should check what decompression method should be used based off the extension.

.tar.zstd:   extract::decompress_zstd -> extract::unpack_tarball
.tar.gzip:   extract::decompress_gzip -> extract::unpack_tarball
.tar     :   extract::unpack_tarball

Metadata

Metadata

Assignees

Labels

enhancementNew feature or request

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions