Skip to content
Browse files

Fix QtWebEngineProcess deploy for travis-ci MacOS builds

This is a workaround for a bug in the homebrew version of macdeployqt
not present in Qt official binary distributions
  • Loading branch information
amtriathlon committed Nov 25, 2019
1 parent fa7684a commit 6210d0a28dea65322162f61db29869f071c6bf46
Showing with 11 additions and 0 deletions.
  1. +11 −0 travis/osx/
@@ -10,6 +10,17 @@ cp /usr/local/opt/icu4c/lib/libicudata.64.dylib
# Copy python framework and change the path in binary
cp -R /usr/local/opt/python/Frameworks/Python.framework
install_name_tool -change `otool -L | awk '/python/ {print $1; gsub("/usr/local/opt/python", "@executable_path/..", $1); print $1}'`
# Fix QtWebEngineProcess due to bug in macdployqt from homebrew
/usr/local/opt/qt5/bin/macdeployqt -verbose=2
for LIB in QtGui QtCore QtWebEngineCore QtQuick QtWebChannel QtQml QtNetwork QtPositioning
OLD_PATH=`otool -L QtWebEngineProcess | grep ${LIB} | cut -f 1 -d ' '`
echo ${OLD_PATH} ${NEW_PATH}
install_name_tool -change ${OLD_PATH} ${NEW_PATH} QtWebEngineProcess
# Deploy and generate dmg
/usr/local/opt/qt5/bin/macdeployqt -verbose=2 -fs=hfs+ -dmg
python ../travis/ /usr/local/opt/qt5

0 comments on commit 6210d0a

Please sign in to comment.
You can’t perform that action at this time.