Skip to content

Commit

Permalink
Re-add jar compression
Browse files Browse the repository at this point in the history
A fix for the unpacker will be shipped in pojav
  • Loading branch information
Mathias-Boulay authored Jun 3, 2022
1 parent 450da75 commit 65e4d69
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions repackjre.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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]
Expand Down Expand Up @@ -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"/*;
Expand Down

0 comments on commit 65e4d69

Please sign in to comment.