Skip to content

Commit

Permalink
Explicitly set compression ratio on resulting jar files (#2)
Browse files Browse the repository at this point in the history
Co-authored-by: LexManos <[email protected]>
  • Loading branch information
diesieben07 and LexManos authored Oct 6, 2024
1 parent 6324f7c commit 31a8682
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions src/main/java/net/minecraftforge/jarsplitter/ConsoleTool.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,11 @@ public static void main(String[] args) throws IOException {
ZipOutputStream zslim = new ZipOutputStream(slim == null ? NULL_OUTPUT : new FileOutputStream(slim));
ZipOutputStream zdata = new ZipOutputStream(data == null ? NULL_OUTPUT : new FileOutputStream(data));
ZipOutputStream zextra = new ZipOutputStream(extra == null ? NULL_OUTPUT : new FileOutputStream(extra))) {
// Explicitly set compression level because of potential differences based on environment.
// See https://github.com/MinecraftForge/JarSplitter/pull/2
zslim.setLevel(6);
zdata.setLevel(6);
zextra.setLevel(6);

ZipEntry entry;
while ((entry = zinput.getNextEntry()) != null) {
Expand Down

0 comments on commit 31a8682

Please sign in to comment.