Skip to content

Feature request: Export as .tar.xz #2007

@AnyOldName3

Description

@AnyOldName3

7zip is packaged differently on different Linux distros, and ends up available via different command names as a result (i.e. it's not always 7z). .zip archives generally end up significantly larger, and exporting as a raw directory and then explicitly archiving it via another command is extra hassle.

It would therefore be nice to be able to export a .tar.xz tarball, and benefit from the wide availability of tar and the same compression effectiveness as .7z.

This looks to be a pretty simple change - the cmake -E tar command that's used to make .zip and .7z archives can make .tar.xz, too. Right now it's used like

cmake -E tar cf archive_path.7z --format=7zip -- path/to/directory

and

cmake -E tar cf archive_path.zip --format=zip -- path/to/directory

and a .tar.xz can be made with

cmake -E tar cfJ archive_path.tar.xz -- path/to/directory

optionally with --format=gnutar if that makes things easier.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    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