Fix[repackjre]: correctly copy VM library

This commit is contained in:
Maksim Belov 2025-02-23 14:06:59 +03:00 committed by GitHub
parent a2dbea0390
commit e2f632f140
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -17,6 +17,13 @@ mkdir -p $work
mkdir -p $work1
mkdir -p "$out"
copyjvmlib() {
if [[ -d lib/$1 ]]; then
echo "Moving $1 VM for $2"
mv lib/$1 "$work1"/lib/;
fi
}
# here comes a not-so-complicated functions to easily make desired arch
## Usage: makearch [jre_libs_dir_name] [name_in_tarball]
makearch () {
@ -30,7 +37,9 @@ makearch () {
mv lib/jexec "$work1"/lib/;
# server contains the libjvm.so
mv lib/$JVM_VARIANTS "$work1"/lib/;
copyjvmlib server $2
copyjvmlib client $2
# All the other .so files are at the root of the lib folder
find ./ -name '*.so' -execdir mv {} "$work1"/lib/{} \;