Feat: Reduce JRE size (#14)

* Feat: trim .so files

* Fix: Typo on .so selection
This commit is contained in:
Boulay Mathias 2023-05-04 12:39:05 +02:00 committed by GitHub
parent 4fbf9deb51
commit e52c5fd0c5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
5 changed files with 8 additions and 0 deletions

View File

@ -3,6 +3,7 @@ set -e
export TARGET=arm-linux-androideabi
export TARGET_JDK=arm
export NDK_PREBUILT_ARCH=arm
bash ci_build_global.sh

View File

@ -6,6 +6,7 @@ else
export TARGET=aarch64-linux-android
fi
export TARGET_JDK=aarch64
export NDK_PREBUILT_ARCH=aarch64
bash ci_build_global.sh

View File

@ -3,6 +3,7 @@ set -e
export TARGET=i686-linux-android
export TARGET_JDK=x86
export NDK_PREBUILT_ARCH=i686
bash ci_build_global.sh

View File

@ -3,6 +3,7 @@ set -e
export TARGET=x86_64-linux-android
export TARGET_JDK=x86_64
export NDK_PREBUILT_ARCH=x86_64
bash ci_build_global.sh

View File

@ -30,6 +30,10 @@ fi
cp -rv jre_override/lib/* jreout/lib/ || true
cd jreout
# Strip in place all .so files thanks to the ndk
find ./ -name '*.so' -execdir $NDK/toolchains/llvm/prebuilt/linux-x86_64/${NDK_PREBUILT_ARCH}-linux-android/bin/strip {} \;
tar cJf ../jre17-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
cd ../jdkout