mirror of
https://github.com/AlexandreRouma/SDRPlusPlus.git
synced 2025-01-27 01:54:44 +01:00
MacOS CI fix again
This commit is contained in:
parent
21b405d2bb
commit
c320a486b3
@ -81,6 +81,7 @@ bundle_install_binary() {
|
|||||||
|
|
||||||
local EXEC_NAME=$(basename $3)
|
local EXEC_NAME=$(basename $3)
|
||||||
local EXEC_DEST=$2/$EXEC_NAME
|
local EXEC_DEST=$2/$EXEC_NAME
|
||||||
|
local RPATHS=$(bundle_get_exec_rpaths $3)
|
||||||
|
|
||||||
# Check if file exists
|
# Check if file exists
|
||||||
if [ ! -f $3 ]; then
|
if [ ! -f $3 ]; then
|
||||||
@ -109,6 +110,21 @@ bundle_install_binary() {
|
|||||||
continue
|
continue
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
# If path is relative to rpath, find the full path
|
||||||
|
local IS_RPATH_RELATIVE=$(echo $DEP | grep @rpath)
|
||||||
|
if [ "$IS_RPATH_RELATIVE" != "" ]; then
|
||||||
|
echo "Getting full path for" $DEP
|
||||||
|
echo "$RPATHS" | while read -r RPATH; do
|
||||||
|
# If not found, skip
|
||||||
|
if [ ! -f $RPATH/$DEP_NAME ]; then
|
||||||
|
continue
|
||||||
|
fi
|
||||||
|
|
||||||
|
# Correct dep path
|
||||||
|
DEP=$RPATH/$DEP_NAME
|
||||||
|
done
|
||||||
|
fi
|
||||||
|
|
||||||
# If the dependency is not installed, install it
|
# If the dependency is not installed, install it
|
||||||
if [ ! -f $1/Contents/Frameworks/$DEP_NAME ]; then
|
if [ ! -f $1/Contents/Frameworks/$DEP_NAME ]; then
|
||||||
bundle_install_binary $1 $1/Contents/Frameworks $DEP
|
bundle_install_binary $1 $1/Contents/Frameworks $DEP
|
||||||
@ -119,7 +135,6 @@ bundle_install_binary() {
|
|||||||
done
|
done
|
||||||
|
|
||||||
# Remove all its rpaths
|
# Remove all its rpaths
|
||||||
local RPATHS=$(bundle_get_exec_rpaths $EXEC_DEST)
|
|
||||||
if [ "$RPATHS" != "" ]; then
|
if [ "$RPATHS" != "" ]; then
|
||||||
echo "$RPATHS" | while read -r RPATH; do
|
echo "$RPATHS" | while read -r RPATH; do
|
||||||
install_name_tool -delete_rpath $RPATH $EXEC_DEST
|
install_name_tool -delete_rpath $RPATH $EXEC_DEST
|
||||||
|
Loading…
x
Reference in New Issue
Block a user