Set the compression method to prioritize file size

This commit is contained in:
Toastie 2024-12-27 18:09:50 +13:00
parent a88997e8e5
commit ad940c6167
Signed by: toastie_t0ast
GPG key ID: 27F3B6855AFD40A4

View file

@ -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);
}
}