blob: d2d8c858bca9427136af53cc290aa99a0e2b491f (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
#!/bin/bash
#This script changes paths in installed binaries to relative. The first argument is path to .app package.
echo Fixing paths to libraries inside $1...
FINDDIR=$1/Contents
IFS=$'\n'
for i in `find $FINDDIR -type f -name \*.dylib -or -type f -name \*.so -or -type f -name qmmp` ; do
install_name_tool -change libqmmp.0.dylib @executable_path/../Frameworks/libqmmp.0.dylib $i
install_name_tool -change libqmmpui.0.dylib @executable_path/../Frameworks/libqmmpui.0.dylib $i
done
echo Fixing paths to libraries done.
|