Mercurial > hg > tony
view deploy/osx/paths.sh @ 194:34797795a76c
Clearing the selection by hitting Esc now restores the selected region of the pitch track to its contents from before the selection was made (and any alternate candidate chosen). Fixes feature #885
author | Chris Cannam |
---|---|
date | Wed, 05 Mar 2014 10:38:23 +0000 |
parents | 092a69229347 |
children | a3e9ddb7bb8b |
line wrap: on
line source
#!/bin/bash app="$1" if [ -z "$app" ]; then echo "Usage: $0 <appname>" echo "Provide appname without the .app extension, please" exit 2 fi 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 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" 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 find "$app.app" -type f -print | while read x; do 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/,," \ -e 's,[^/]*/,../,g' -e 's,/[^/]*$,/Frameworks/'"$fwk"',' ) echo "replacing with relative path $relative" install_name_tool -change "$current" "@loader_path/$relative" "$x" done done echo "Done: be sure to run the app and see that it works!"