Feat: Reduce JRE 8 size by around 3 MB (#15)

* Feat: trim .so files

* Build: update ndk version

* workaround, Switch to old strip bins

* Fix:typo
This commit is contained in:
Boulay Mathias 2023-05-04 12:38:31 +02:00 committed by GitHub
parent 58b97dd988
commit b2217873d7
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=/toolchains/arm-linux-androideabi-4.9/prebuilt/linux-x86_64/arm-linux-androideabi/bin/strip
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=/toolchains/aarch64-linux-android-4.9/prebuilt/linux-x86_64/aarch64-linux-android/bin/strip
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=/toolchains/x86-4.9/prebuilt/linux-x86_64/i686-linux-android/bin/strip
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=/toolchains/x86_64-4.9/prebuilt/linux-x86_64/x86_64-linux-android/bin/strip
bash ci_build_global.sh

View File

@ -30,6 +30,10 @@ sudo cp -R jre_override/lib/* jreout/lib/
sudo cp -R jre_override/lib/* jdkout/jre/lib
cd jreout
# Strip in place all .so files thanks to the ndk
find ./ -name '*.so' -execdir ${NDK}${NDK_PREBUILT_ARCH} {} \;
tar cJf ../jre8-${TARGET_SHORT}-`date +%Y%m%d`-${JDK_DEBUG_LEVEL}.tar.xz .
cd ../jdkout