Mercurial > hg > sonic-visualiser
diff deploy/osx/paths.sh @ 509:451d3c087112
Override Qt library path on OS/X to avoid dependencies on unknown versions from outside the app bundle
author | Chris Cannam |
---|---|
date | Mon, 16 Jul 2012 10:29:38 +0100 |
parents | 27446c7f3935 |
children | 4481a2ca375d |
line wrap: on
line diff
--- a/deploy/osx/paths.sh Mon Jul 02 12:46:25 2012 +0100 +++ b/deploy/osx/paths.sh Mon Jul 16 10:29:38 2012 +0100 @@ -19,9 +19,13 @@ install_name_tool -id QtNetwork "$app.app/Contents/Frameworks/QtNetwork" install_name_tool -id QtXml "$app.app/Contents/Frameworks/QtXml" -for fwk in QtCore QtGui QtNetwork QtXml; do +find "$app.app" -name \*.dylib -print | while read x; do + install_name_tool -id "`basename \"$x\"`" "$x" +done + +for fwk in QtCore QtGui QtNetwork QtXml QtSvg; do find "$app.app" -type f -print | while read x; do - current=$(otool -L "$x" | grep "$fwk" | grep ramework | awk '{ print $1; }') + current=$(otool -L "$x" | grep "$fwk" | grep amework | awk '{ print $1; }') [ -z "$current" ] && continue echo "$x has $current" relative=$(echo "$x" | sed -e "s,$app.app/Contents/,," \