Reproduce expected hierarchy for macOS frameworks

This commit is contained in:
Davide De Rosa 2019-09-25 22:59:08 +02:00
parent 4b928744b7
commit c57fea7d24
1 changed files with 20 additions and 0 deletions

View File

@ -143,3 +143,23 @@ else
fi
done
fi
# macOS symlinks
for SYS in ${ALL_SYSTEMS[@]}; do
if [[ $SYS == "MacOSX" ]]; then
SYSDIR="$FWROOT/$SYS"
FWDIR="$SYSDIR/$FWNAME.framework"
cd $FWDIR
mkdir "Versions"
mkdir "Versions/A"
mkdir "Versions/A/Resources"
mv "openssl" "Headers" "Versions/A"
mv "Info.plist" "Versions/A/Resources"
(cd "Versions" && ln -s "A" "Current")
ln -s "Versions/Current/openssl"
ln -s "Versions/Current/Headers"
ln -s "Versions/Current/Resources"
fi
done