From 4f23f5505a0847c368df543536571255956f27be Mon Sep 17 00:00:00 2001 From: MarkosTh09 Date: Mon, 4 May 2026 16:48:04 +0400 Subject: [PATCH] fix minor issues with rpath logic --- .ci/deploy-mac.sh | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/.ci/deploy-mac.sh b/.ci/deploy-mac.sh index 3e4114f75d..b37b27c1e2 100755 --- a/.ci/deploy-mac.sh +++ b/.ci/deploy-mac.sh @@ -61,7 +61,6 @@ mv RPCS3_.app RPCS3.app BIN="RPCS3.app/Contents/MacOS/rpcs3" install_name_tool -delete_rpath /opt/homebrew/lib $BIN || true install_name_tool -delete_rpath /usr/local/lib $BIN || true -install_name_tool -add_rpath @executable_path/../Frameworks "$BIN" 2>/dev/null || true # Fix dylib IDs for lib in RPCS3.app/Contents/Frameworks/*.dylib; do @@ -70,7 +69,7 @@ for lib in RPCS3.app/Contents/Frameworks/*.dylib; do done # Rewrite any hardcoded Homebrew paths to use @rpath -find "$BIN" -type f \( -perm +111 -o -name "*.dylib" \) | while read -r bin; do +find "RPCS3.app/Contents/" -type f \( -perm +111 -o -name "*.dylib" \) | while read -r bin; do otool -L "$bin" | grep -E "/opt/homebrew|/usr/local" | awk '{print $1}' | while read -r dep; do base=$(basename "$dep") echo "Fixing $dep -> @rpath/$base in $bin"