Use input directory when running install_name_tool. This should hopefully fix the Homebrew build.

This commit is contained in:
casey langen 2023-03-22 20:19:56 -07:00
parent a604cc2423
commit 2aa73b3f59

View File

@ -31,11 +31,11 @@ fi
if [ "$PLATFORM" = 'Darwin' ]; then if [ "$PLATFORM" = 'Darwin' ]; then
echo "[patch-rpath] patching macOS binaries..." echo "[patch-rpath] patching macOS binaries..."
SOURCE_DIR=$1
install_name_tool -add_rpath "@executable_path/" bin/musikcube install_name_tool -add_rpath "@executable_path/" $SOURCE_DIR/bin/musikcube
install_name_tool -add_rpath "@executable_path/lib" bin/musikcube install_name_tool -add_rpath "@executable_path/lib" $SOURCE_DIR/bin/musikcube
install_name_tool -add_rpath "@executable_path/" bin/musikcubed install_name_tool -add_rpath "@executable_path/" $SOURCE_DIR/bin/musikcubed
install_name_tool -add_rpath "@executable_path/lib" bin/musikcubed install_name_tool -add_rpath "@executable_path/lib" $SOURCE_DIR/bin/musikcubed
fi fi
exit 0 exit 0