From c11b1d4ffe15a2a6ccd712f9fa584e9436c21815 2019-06-05 08:41:58 From: Alexis Jeandet Date: 2019-06-05 08:41:58 Subject: [PATCH] More dmg fixes Signed-off-by: Alexis Jeandet --- diff --git a/build_cfg/mac/install_script.sh b/build_cfg/mac/install_script.sh index 59bf744..1d10ca5 100755 --- a/build_cfg/mac/install_script.sh +++ b/build_cfg/mac/install_script.sh @@ -11,10 +11,11 @@ install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_pa install_name_tool -change @rpath/QtWidgets.framework/Versions/5/QtWidgets @executable_path/../Frameworks/QtWidgets.framework/Versions/5/QtWidgets /tmp/SciQLOP.app/Contents/MacOS/sciqlop install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/Contents/MacOS/sciqlop install_name_tool -change @rpath/QtSvg.framework/Versions/5/QtSvg @executable_path/../Frameworks/QtSvg.framework/Versions/5/QtSvg /tmp/SciQLOP.app/Contents/MacOS/sciqlop -install_name_tool -change $python_lib_path @executable_path/../.Python /tmp/SciQLOP.app/Contents/MacOS/sciqlop +install_name_tool -change $python_lib_path @executable_path/../../.Python /tmp/SciQLOP.app/Contents/MacOS/sciqlop -install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/lib/pysciqlopcore.*.so -install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/lib/pysciqlopcore.*.so -install_name_tool -change @rpath/QtNetwork.framework/Versions/5/QtNetwork @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/lib/pysciqlopcore.*.so -install_name_tool -change $python_lib_path @executable_path/../.Python /tmp/SciQLOP.app/lib/pysciqlopcore.*.so +qtcore_path=`otool -L /tmp/SciQLOP.app/lib/pysciqlopcore.*.so | grep -i QtCore | cut -d' ' -f1` +qtnetwork_path=`otool -L /tmp/SciQLOP.app/lib/pysciqlopcore.*.so | grep -i QtNetwork | cut -d' ' -f1` +install_name_tool -change $qtcore_path @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/lib/pysciqlopcore.*.so +install_name_tool -change $qtnetwork_path @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork /tmp/SciQLOP.app/lib/pysciqlopcore.*.so +install_name_tool -change $python_lib_path @executable_path/../../.Python /tmp/SciQLOP.app/lib/pysciqlopcore.*.so install_name_tool -change $stdcpp_lib_path @executable_path/../Frameworks/libstdc++.*.dylib /tmp/SciQLOP.app/lib/pysciqlopcore.*.so