diff options
-rwxr-xr-x | packaging/macosx/make-package.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/packaging/macosx/make-package.sh b/packaging/macosx/make-package.sh index 70c9d71de..990d510ed 100755 --- a/packaging/macosx/make-package.sh +++ b/packaging/macosx/make-package.sh @@ -21,7 +21,7 @@ LIBRARY_PATH=${DIR}/install-root/lib make -j8 LIBRARY_PATH=${DIR}/install-root/lib make install # HACK TIME... QtXml is missing. screw this -cp -a /Users/hohndel/Qt/5.5/clang_64/lib/QtXml.framework Subsurface.app/Contents/Frameworks +cp -a $HOME/Qt/5.5/clang_64/lib/QtXml.framework Subsurface.app/Contents/Frameworks rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/Versions/5/Headers rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/Headers rm -rf Subsurface.app/Contents/Frameworks/QtXml.framework/QtXml.prl @@ -44,6 +44,10 @@ for i in libssh libssrfmarblewidget libgit2; do install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME} fi done +RPATH=$(otool -L ${EXECUTABLE} | grep rpath | cut -d\ -f1 | tr -d "\t" | cut -b 8- ) +for i in ${RPATH}; do + install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE} +done # next deal with libGrantlee LIBG=Subsurface.app/Contents/Frameworks/libGrantlee_Templates.5.dylib |