From 5b0b8972d1eadeeb54c6236b673cde4a36e4a646 Mon Sep 17 00:00:00 2001 From: zhrenqiang Date: Fri, 15 Dec 2023 17:41:22 +0800 Subject: [PATCH] =?UTF-8?q?fixed=20a9b5046=20from=20https://gitee.com/zhre?= =?UTF-8?q?nqiang/developtools=5Fpacking=5Ftool/pulls/700=20=E4=BF=AE?= =?UTF-8?q?=E6=94=B9so=E9=BB=98=E8=AE=A4=E5=8E=8B=E7=BC=A9=E7=BA=A7?= =?UTF-8?q?=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhrenqiang --- adapter/ohos/Compressor.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/adapter/ohos/Compressor.java b/adapter/ohos/Compressor.java index 15fe2d8f..912f0869 100644 --- a/adapter/ohos/Compressor.java +++ b/adapter/ohos/Compressor.java @@ -48,6 +48,7 @@ import java.util.regex.Pattern; import java.util.UUID; import java.util.zip.CRC32; import java.util.zip.CheckedOutputStream; +import java.util.zip.Deflater; import java.util.zip.ZipInputStream; import java.util.zip.ZipEntry; import java.util.zip.ZipFile; @@ -335,6 +336,7 @@ public class Compressor { fileOut = new FileOutputStream(destFile); checkedOut = new CheckedOutputStream(fileOut, new CRC32()); zipOut = new ZipOutputStream(checkedOut); + zipOut.setLevel(Deflater.BEST_SPEED); compressExcute(utility); } catch (FileNotFoundException exception) { compressResult = false; -- Gitee