fixed signing, missing ldid

This commit is contained in:
pojavlauncher 2021-05-24 16:04:36 +07:00
parent a7c6c8fd86
commit d2b48f7e45
3 changed files with 10 additions and 6 deletions

3
.gitignore vendored
View File

@ -14,3 +14,6 @@ jreout
ios-missing-include/cups
ios-missing-include/X11
ios-missing-include/Xm
dizout
jreout
jdkout

View File

@ -47,7 +47,7 @@ else
export CFLAGS+=" $sameflags"
export CXXFLAGS="$sameflags"
HOMEBREW_NO_AUTO_UPDATE=1 brew install xquartz
HOMEBREW_NO_AUTO_UPDATE=1 brew install ldid xquartz
fi
# fix building libjawt

View File

@ -1,19 +1,20 @@
#!/bin/bash
set -e
rm -rf jreout || true
if [ "$TARGET_JDK" == "arm" ]
then
if [ "$TARGET_JDK" == "arm" ]; then
export TARGET_JDK=aarch32
fi
imagespath=openjdk/build/${JVM_PLATFORM}-${TARGET_JDK}-normal-${JVM_VARIANTS}-${JDK_DEBUG_LEVEL}/images
rm -rf dizout jreout jdkout
mkdir dizout
if [ "$BUILD_IOS" == "1" ]; then
find $imagespath -name "*.dylib" -exec ldid -S ios-sign-entitlements.xml {} \;
find $imagespath -name "bin" -exec ldid -S ios-sign-entitlements.xml {}/* \;
find $imagespath -name "*.dylib" -exec ldid -Sios-sign-entitlements.xml {} \;
for bindir in $(find $imagespath -name "bin"); do
ldid -Sios-sign-entitlements.xml ${bindir}/*
done
fi
cp -r $imagespath/j2re-image jreout