Zips files into a zip archive.
- zip-file: specifies the name of the zip archive file (required).
- files: a semicolon (;)-separated list of files to be zipped. If this parameter is not set, the command will use a file list from the last file command. If there was no previous file command, the zip command will fail.
- base-dir: specifies the base directory to use when adding files to the ZIP archive. All file paths will be relative to this base directory. If this parameter is not set, the base directory of the last file command will be used. If there was no previous file command, the current directory will be used.
- compression: specifies the compression level to use when archiving. The compression level is specified as an integer from 0 (meaning no compression) to 9 (maximum compression). If not specified, the compression level 5 will be used.
Exports the map to the SVG file and then zips all the resulting files (which can include the SVG file and attached images) into a test/myfiles.zip file.
zip zip-file=myfiles.zip files=file1.txt;file2.txt;other/image.bmp compression=8
Zips three files into a myfiles.zip archive using compression level 8.