comparison deploy/osx/copy-qt.sh @ 544:1dddd90cb84e

macOS deployment fixes
author Chris Cannam
date Thu, 14 Feb 2019 13:11:27 +0000
parents 2fcc15ca574a
children 55dd89415de0
comparison
equal deleted inserted replaced
541:fea109b93831 544:1dddd90cb84e
9 exit 2 9 exit 2
10 fi 10 fi
11 11
12 frameworks="QtCore QtNetwork QtGui QtXml QtSvg QtWidgets QtPrintSupport QtDBus" 12 frameworks="QtCore QtNetwork QtGui QtXml QtSvg QtWidgets QtPrintSupport QtDBus"
13 13
14 plugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen" 14 plugins="gif icns ico jpeg tga tiff wbmp webp cocoa minimal offscreen macstyle"
15 15
16 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,) 16 qtdir=$(grep "Command:" Makefile | head -1 | awk '{ print $3; }' | sed s,/bin/.*,,)
17 17
18 if [ ! -d "$qtdir" ]; then 18 if [ ! -d "$qtdir" ]; then
19 echo "Failed to discover Qt installation directory from Makefile, exiting" 19 echo "Failed to discover Qt installation directory from Makefile, exiting"
27 mkdir -p "$pdir" 27 mkdir -p "$pdir"
28 28
29 echo 29 echo
30 echo "Copying frameworks..." 30 echo "Copying frameworks..."
31 for fwk in $frameworks; do 31 for fwk in $frameworks; do
32 if [ ! -d "$qtdir/lib/$fwk.framework" ]; then
33 if [ "$fwk" = "QtDBus" ]; then
34 echo "QtDBus.framework not found, assuming Qt was built without DBus support"
35 continue
36 fi
37 fi
32 cp -v "$qtdir/lib/$fwk.framework/$fwk" "$fdir" || exit 2 38 cp -v "$qtdir/lib/$fwk.framework/$fwk" "$fdir" || exit 2
33 done 39 done
34 40
35 echo "Done" 41 echo "Done"
36 42