Skip to content

Commit 15a1160

Browse files
Trying to use better zip compression.
Related to #9.
1 parent 2f8d3d6 commit 15a1160

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

module/Client/src/Client/Controller/PluginController.php

+3
Original file line numberDiff line numberDiff line change
@@ -97,6 +97,9 @@ public function packAction()
9797
$relativePath = substr($filePath, strlen($root) + 1);
9898

9999
$zip->addFile($filePath, $relativePath);
100+
if(PHP_MAJOR_VERSION >= 7) {
101+
$zip->setCompressionName($relativePath, \ZipArchive::CM_REDUCE_4);
102+
}
100103
}
101104
}
102105
$zip->close();

0 commit comments

Comments
 (0)