Skip to content
This repository was archived by the owner on Aug 9, 2021. It is now read-only.

Commit e4cdbe6

Browse files
committed
Fixes library paths for deployment
1 parent 5eb9ae3 commit e4cdbe6

1 file changed

Lines changed: 6 additions & 1 deletion

File tree

deploy/darwin/postbuild.sh

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,12 +31,17 @@ cp "$QT_INSTALL_DIR/bin/macdeployqt" "./darwin/bin/macdeployqt"
3131

3232
cp ./qode ./darwin/qode
3333
cd ./darwin
34-
34+
echo "Fixing linked library paths"
3535
install_name_tool -change "$QT_INSTALL_DIR/lib/QtWidgets.framework/Versions/5/QtWidgets" "@rpath/QtWidgets.framework/Versions/5/QtWidgets" qode
3636
install_name_tool -change "$QT_INSTALL_DIR/lib/QtCore.framework/Versions/5/QtCore" "@rpath/QtCore.framework/Versions/5/QtCore" qode
3737
install_name_tool -change "$QT_INSTALL_DIR/lib/QtGui.framework/Versions/5/QtGui" "@rpath/QtGui.framework/Versions/5/QtGui" qode
3838

3939
install_name_tool -add_rpath "@loader_path/lib" qode
4040
install_name_tool -add_rpath "$QT_INSTALL_DIR/lib/" qode
41+
install_name_tool -add_rpath "@executable_path/../Frameworks" qode
42+
43+
echo "Fixing linked library paths for binaries"
44+
echo "[Paths]" > ./bin/qt.conf
45+
echo "Prefix = \"../\"" >> ./bin/qt.conf
4146

4247
echo "Qode is ready!"

0 commit comments

Comments
 (0)