# HG changeset patch # User Chris Cannam # Date 1464343373 -3600 # Node ID 8f3075eeaac224e5c545d2b8e9c6480b30b75656 # Parent acfaae6844de4e497153e32dabda37a98e272b9a Attempt to fix library paths for PyQt libraries. Doesn't seem to be sufficient. diff -r acfaae6844de -r 8f3075eeaac2 deploy/osx/deploy.sh --- a/deploy/osx/deploy.sh Fri May 27 11:02:38 2016 +0100 +++ b/deploy/osx/deploy.sh Fri May 27 11:02:53 2016 +0100 @@ -49,6 +49,12 @@ echo "Done: check $source/Contents/Info.plist for sanity please" echo +echo "Copying in helper scripts" +cp easyhg-extdiff.sh "$source"/Contents/MacOS/ +cp easyhg-merge.sh "$source"/Contents/MacOS/ +chmod +x "$source"/Contents/MacOS/easyhg-extdiff.sh "$source"/Contents/MacOS/easyhg-merge.sh + +echo echo "Making target tree." volume="$app"-"$version" diff -r acfaae6844de -r 8f3075eeaac2 deploy/osx/paths.sh --- a/deploy/osx/paths.sh Fri May 27 11:02:38 2016 +0100 +++ b/deploy/osx/paths.sh Fri May 27 11:02:53 2016 +0100 @@ -30,15 +30,37 @@ done for fwk in $frameworks; do - find "$app.app" -type f -print | while read x; do - current=$(otool -L "$x" | grep "$fwk" | grep amework | grep -v ':$' | 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 + find "$app.app" -type f -print | while read x; do + + current=$(otool -L "$x" | + grep "$fwk" | grep amework | grep -v ':$' | + awk '{ print $1; }') + + [ -z "$current" ] && continue + + echo "$x has $current" + + case "$x" in + *PyQt4*) + # These are "special" Qt4 libraries used by + # the PyQt module. They need to refer to their + # own local neighbours. Ugh, but let's handle + # those manually here. + relative="$fwk.so" + ;; + *) + # The normal Qt5 case + relative=$(echo "$x" | + sed -e "s,$app.app/Contents/,," \ + -e 's,[^/]*/,../,g' \ + -e 's,/[^/]*$,/Frameworks/'"$fwk"',' ) + ;; + esac + + echo "replacing with relative path $relative" + install_name_tool -change \ + "$current" "@loader_path/$relative" "$x" + done done find "$app.app" -type f -print | while read x; do