- Qbs Manual
- Module archiver
- Qt Build Suite 1.4.1

# Module archiver

The `archiver` module contains the properties and rules for creating (compressed) archives. The output artifact has the file tag "archiver.archive". The sole input artifact is a text file containing the list of files to package, with one file path per line. The paths can be relative, in which case they will be looked for at `archiver.workingDirectory`. The file tag of this input artifact is "archiver.input-list".

## archiver Properties

Property | Type | Default | Description
--- | --- | --- | ---
flags | stringList | empty list | Custom options not covered by any of the other properties.
archiveBaseName | string | `product.targetName` | The base name of the archive file (in other words, the file name without any extensions).
compressionLevel | string | `undefined` | How much effort to put into the compression of a 7-Zip archive. Possible values are `undefined`, "0", "1", "3", "5", "7" and "9". Higher numbers result in a smaller archive, but the compressing process will take more time. A value of `undefined` means to use the default compression level.
compressionType | string | `"gz"` | How to compress a tar archive. Possible options are "none", "gz", "bz2", "Z" and "xz".
outputDirectory | string | `product.destinationDirectory` | Where to put the archive file.
type | string | `undefined` | Which kind of archiver to use. The currently supported values are "tar" and "7zip".
workingDirectory | string | undefined | The directory in which to execute `command`.
command | string | Depends on `type`. | The command with which to invoke the archiver.