Set the compression method to prioritize file size
This commit is contained in:
parent
a88997e8e5
commit
ad940c6167
1 changed files with 2 additions and 2 deletions
|
@ -88,10 +88,10 @@ internal static class Transcriber
|
|||
{
|
||||
using (ZipArchive zip = ZipFile.Open(zipPath, ZipArchiveMode.Create))
|
||||
{
|
||||
zip.CreateEntryFromFile(htmlPath, htmlFilename);
|
||||
zip.CreateEntryFromFile(htmlPath, htmlFilename, CompressionLevel.SmallestSize);
|
||||
foreach (string assetFile in assetFiles)
|
||||
{
|
||||
zip.CreateEntryFromFile(assetFile, assetDirName + "/" + Path.GetFileName(assetFile));
|
||||
zip.CreateEntryFromFile(assetFile, assetDirName + "/" + Path.GetFileName(assetFile), CompressionLevel.SmallestSize);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue