Skip to content
This repository was archived by the owner on May 19, 2025. It is now read-only.

Commit 65e4d69

Browse files
Re-add jar compression
A fix for the unpacker will be shipped in pojav
1 parent 450da75 commit 65e4d69

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

repackjre.sh

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,10 @@ mkdir -p $work
1414
mkdir -p $work1
1515
mkdir -p "$out"
1616

17-
17+
compress_jars(){
18+
find ./ -name '*.jar' -execdir pack200 -S-1 -g -G -E9 {}.pack {} \;
19+
find ./ -name '*.jar' -execdir rm {} \;
20+
}
1821

1922
# here comes a not-so-complicated functions to easily make desired arch
2023
## Usage: makearch [jre_libs_dir_name] [name_in_tarball]
@@ -73,7 +76,7 @@ makeuni () {
7376
rm man/ja_JP.UTF-8/man1/rmid.1
7477
rm man/ja_JP.UTF-8/man1/tnameserv.1
7578

76-
79+
compress_jars
7780
tar cJf universal.tar.xz * > /dev/null 2>&1;
7881
mv universal.tar.xz "$out"/;
7982
rm -rf "$work"/*;

0 commit comments

Comments
 (0)