From 65e4d699bf1981ab63b2ab39d70157596ca7def4 Mon Sep 17 00:00:00 2001 From: Boulay Mathias Date: Fri, 3 Jun 2022 13:16:44 +0200 Subject: [PATCH] Re-add jar compression A fix for the unpacker will be shipped in pojav --- repackjre.sh | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/repackjre.sh b/repackjre.sh index 8751a77b..3635bfdf 100755 --- a/repackjre.sh +++ b/repackjre.sh @@ -14,7 +14,10 @@ mkdir -p $work mkdir -p $work1 mkdir -p "$out" - +compress_jars(){ + find ./ -name '*.jar' -execdir pack200 -S-1 -g -G -E9 {}.pack {} \; + find ./ -name '*.jar' -execdir rm {} \; +} # here comes a not-so-complicated functions to easily make desired arch ## Usage: makearch [jre_libs_dir_name] [name_in_tarball] @@ -73,7 +76,7 @@ makeuni () { rm man/ja_JP.UTF-8/man1/rmid.1 rm man/ja_JP.UTF-8/man1/tnameserv.1 - + compress_jars tar cJf universal.tar.xz * > /dev/null 2>&1; mv universal.tar.xz "$out"/; rm -rf "$work"/*;