mirror of
https://github.com/AngelAuraMC/angelauramc-openjdk-build.git
synced 2025-09-15 23:24:55 -04:00
Fix[repackjre]: correctly copy VM library
This commit is contained in:
parent
a2dbea0390
commit
e2f632f140
@ -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/{} \;
|
||||
|
Loading…
x
Reference in New Issue
Block a user