Skip to content

Commit

Permalink
Trying to use better zip compression.
Browse files Browse the repository at this point in the history
Related to #9.
  • Loading branch information
slav-at-attachix committed Sep 29, 2021
1 parent 2f8d3d6 commit 15a1160
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions module/Client/src/Client/Controller/PluginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,9 @@ public function packAction()
$relativePath = substr($filePath, strlen($root) + 1);

$zip->addFile($filePath, $relativePath);
if(PHP_MAJOR_VERSION >= 7) {
$zip->setCompressionName($relativePath, \ZipArchive::CM_REDUCE_4);
}
}
}
$zip->close();
Expand Down

0 comments on commit 15a1160

Please # to comment.