Mercurial > hg > sonic-visualiser
diff deploy/osx/paths.sh @ 742:5462ac97d28f
OS/X build/deploy fixes
author | Chris Cannam |
---|---|
date | Fri, 04 Jul 2014 11:03:33 +0100 |
parents | 4481a2ca375d |
children | 9fbd599b4e3a bd3728701e1e |
line wrap: on
line diff
--- a/deploy/osx/paths.sh Wed Jul 02 22:04:10 2014 +0100 +++ b/deploy/osx/paths.sh Fri Jul 04 11:03:33 2014 +0100 @@ -7,24 +7,25 @@ exit 2 fi +frameworks="QtCore QtNetwork QtGui QtXml QtWidgets QtPrintSupport" + echo -echo "I expect you to have already copied QtCore, QtNetwork, QtGui, QtXml and QtWidgets to " -echo "$app.app/Contents/Frameworks -- expect errors to follow if they're missing" +echo "I expect you to have already copied these frameworks from the Qt installation to" +echo "$app.app/Contents/Frameworks -- expect errors to follow if they're missing:" +echo "$frameworks" echo echo "Fixing up loader paths in binaries..." -install_name_tool -id QtCore "$app.app/Contents/Frameworks/QtCore" -install_name_tool -id QtGui "$app.app/Contents/Frameworks/QtGui" -install_name_tool -id QtNetwork "$app.app/Contents/Frameworks/QtNetwork" -install_name_tool -id QtXml "$app.app/Contents/Frameworks/QtXml" -install_name_tool -id QtWidgets "$app.app/Contents/Frameworks/QtWidgets" +for fwk in $frameworks; do + install_name_tool -id $fwk "$app.app/Contents/Frameworks/$fwk" +done 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 QtWidgets; do +for fwk in $frameworks; do find "$app.app" -type f -print | while read x; do current=$(otool -L "$x" | grep "$fwk" | grep amework | awk '{ print $1; }') [ -z "$current" ] && continue