Skip to content
a plugin to utilize the DotNetZip library to zip and unzip archives with the PVC Build Engine. Created by @joshgerdes
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
src
.gitignore
LICENSE
Pvc.Zip.sln
README.md
pvc-project.json
pvcfile.csx

README.md

PVC Build Engine

pvc-zip

This is a plugin to utilize the DotNetZip library to zip and unzip archives with the PVC Build Engine.

###Parameter Options

The plugin has the ability to take in the following parameters:

####PvcZip()

  • password (default: none) - password to use with the zip archive created.
  • name (default: "Archive") - name of the zip archive that is created.
  • level (default: "default") - name of the compression level to use with the zip archive created. Available levels: 'best', 'speed', 'default', 'none', '1', '2', '3', '4', '5', '6', '7', '8', '9'

####PvcUnzip()

  • password (optional) - password to used when unzipping a password-protected archive.

###Usage Examples

Basic Zip (outputs: Archive.zip):

pvc.Source("js/*", "css/*", "test.js", "test.css")
	.Pipe(new PvcZip())
	.Save(@"deploy");

Basic zip with password protection:

pvc.Source("js/*", "css/*", "test.js", "test.css")
	.Pipe(new PvcZip(password: "pass@word1"))
	.Save(@"deploy");

Basic zip with name of archive (outputs: Backup.zip):

pvc.Source("js/*", "css/*", "test.js", "test.css")
	.Pipe(new PvcZip(name: "Backup"))
	.Save(@"deploy");

Basic zip with compression level:

pvc.Source("js/*", "css/*", "test.js", "test.css")
	.Pipe(new PvcZip(level: "speed"))
	.Save(@"deploy");

Basic unzip:

pvc.Source("Archive.zip")
	.Pipe(new PvcUnzip())
	.Save(@"deploy");

Basic unzip with password protection:

pvc.Source("Archive.zip")
	.Pipe(new PvcUnzip("pass@word1"))
	.Save(@"deploy");
You can’t perform that action at this time.