diff --git a/build_cfg/mac/install_script.sh b/build_cfg/mac/install_script.sh index 1d10ca5..88ff966 100755 --- a/build_cfg/mac/install_script.sh +++ b/build_cfg/mac/install_script.sh @@ -5,6 +5,7 @@ mv ${MESON_INSTALL_PREFIX}/lib/*plugin* ${MESON_INSTALL_PREFIX}/Contents/MacOS macdeployqt ${MESON_INSTALL_PREFIX} -verbose=3 -executable=/tmp/SciQLOP.app/Contents/MacOS/sciqlop python_lib_path=`otool -L /tmp/SciQLOP.app/Contents/MacOS/sciqlop | grep -i python | cut -d' ' -f1` stdcpp_lib_path=`otool -L /tmp/SciQLOP.app/lib/pysciqlopcore.*.so | grep -i stdc++ | cut -d' ' -f1` +stdcpp_lib_name=`echo $stdcpp_lib_path | rev | cut -d'/' -f1 | rev` install_name_tool -change @rpath/QtCore.framework/Versions/5/QtCore @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore /tmp/SciQLOP.app/Contents/MacOS/sciqlop install_name_tool -change @rpath/QtPrintSupport.framework/Versions/5/QtPrintSupport @executable_path/../Frameworks/QtPrintSupport.framework/Versions/5/QtPrintSupport /tmp/SciQLOP.app/Contents/MacOS/sciqlop install_name_tool -change @rpath/QtGui.framework/Versions/5/QtGui @executable_path/../Frameworks/QtGui.framework/Versions/5/QtGui /tmp/SciQLOP.app/Contents/MacOS/sciqlop @@ -15,7 +16,8 @@ install_name_tool -change $python_lib_path @executable_path/../../.Python /tmp/S 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 +pysciqlopcore_path=`ls /tmp/SciQLOP.app/lib/pysciqlopcore.*.so` +install_name_tool -change $qtcore_path @executable_path/../Frameworks/QtCore.framework/Versions/5/QtCore $pysciqlopcore_path +install_name_tool -change $qtnetwork_path @executable_path/../Frameworks/QtNetwork.framework/Versions/5/QtNetwork $pysciqlopcore_path +install_name_tool -change $python_lib_path @executable_path/../../.Python $pysciqlopcore_path +install_name_tool -change $stdcpp_lib_path @executable_path/../Frameworks/$stdcpp_lib_name $pysciqlopcore_path