Add support for choosing compression algorithm.

This commit is contained in:
2017-05-11 03:46:19 +01:00
parent f7e5facc0e
commit 247e4ec4f4
7 changed files with 137 additions and 15 deletions

View File

@@ -831,7 +831,7 @@ namespace osrepodbmgr.Core
ZipFile zf = new ZipFile(destination);
zf.CompressionLevel = Ionic.Zlib.CompressionLevel.BestCompression;
zf.CompressionMethod = CompressionMethod.Deflate;
zf.CompressionMethod = Settings.Current.CompressionAlgorithm;
zf.UseZip64WhenSaving = Zip64Option.AsNecessary;
string filesPath;