Skip to content

Commit

Permalink
Fix plugins in macOS
Browse files Browse the repository at this point in the history
  • Loading branch information
BatchDrake committed Dec 13, 2023
1 parent 6a90c66 commit 90fc73b
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions Scripts/dist-dmg.sh
Original file line number Diff line number Diff line change
Expand Up @@ -167,13 +167,13 @@ function remove_full_path_stdin () {

function ensure_rpath()
{
for i in "$LIBPATH"/*.dylib "$LIBPATH/SoapySDR/modules"*/*.so "$BUNDLEPATH"/Contents/MacOS/*; do
if ! [ -L "$i" ]; then
chmod u+rw "$i"
try "Fixing "`basename $i`"..." true
otool -L "$i" | grep '\t/usr/local/' | tr -d '\t' | cut -f1 -d ' ' | remove_full_path_stdin "$i";
otool -L "$i" | grep '\t@rpath/.*\.dylib' | tr -d '\t' | cut -f1 -d ' ' | remove_full_path_stdin "$i";
fi
for i in "$LIBPATH"/*.dylib "$LIBPATH/SoapySDR/modules"*/*.so "$BUNDLEPATH"/Contents/MacOS/* "$RSRCPATH"/suscan/plugins/*; do
if ! [ -L "$i" ]; then
chmod u+rw "$i"
try "Fixing "`basename $i`"..." true
otool -L "$i" | grep '\t/usr/local/' | tr -d '\t' | cut -f1 -d ' ' | remove_full_path_stdin "$i";
otool -L "$i" | grep '\t@rpath/.*\.dylib' | tr -d '\t' | cut -f1 -d ' ' | remove_full_path_stdin "$i";
fi
done
}

Expand Down

0 comments on commit 90fc73b

Please sign in to comment.