From 2aa73b3f5919b2b206dca3b7f0cd824c2c9552fb Mon Sep 17 00:00:00 2001 From: casey langen Date: Wed, 22 Mar 2023 20:19:56 -0700 Subject: [PATCH] Use input directory when running install_name_tool. This should hopefully fix the Homebrew build. --- script/patch-rpath.sh | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/script/patch-rpath.sh b/script/patch-rpath.sh index 8fdfd1794..d352c53b5 100755 --- a/script/patch-rpath.sh +++ b/script/patch-rpath.sh @@ -31,11 +31,11 @@ fi if [ "$PLATFORM" = 'Darwin' ]; then echo "[patch-rpath] patching macOS binaries..." - - install_name_tool -add_rpath "@executable_path/" bin/musikcube - install_name_tool -add_rpath "@executable_path/lib" bin/musikcube - install_name_tool -add_rpath "@executable_path/" bin/musikcubed - install_name_tool -add_rpath "@executable_path/lib" bin/musikcubed + SOURCE_DIR=$1 + install_name_tool -add_rpath "@executable_path/" $SOURCE_DIR/bin/musikcube + install_name_tool -add_rpath "@executable_path/lib" $SOURCE_DIR/bin/musikcube + install_name_tool -add_rpath "@executable_path/" $SOURCE_DIR/bin/musikcubed + install_name_tool -add_rpath "@executable_path/lib" $SOURCE_DIR/bin/musikcubed fi exit 0