mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
Fix MacOS make-package script
We need the full path to the local libssh in order to replace it with the correct path. Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
902a27d5de
commit
ca7f5935be
1 changed files with 2 additions and 1 deletions
|
|
@ -32,7 +32,8 @@ for i in libssh libssrfmarblewidget libgit2 libGrantlee_TextDocument.dylib libGr
|
||||||
LIBSSH=$(basename ${OLD})
|
LIBSSH=$(basename ${OLD})
|
||||||
fi
|
fi
|
||||||
if [[ "$i" = "libgit2" && ! -z ${LIBSSH} ]] ; then
|
if [[ "$i" = "libgit2" && ! -z ${LIBSSH} ]] ; then
|
||||||
install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
|
CURLIBSSH=$(otool -L Subsurface.app/Contents/Frameworks/${SONAME} | grep libssh | cut -d\ -f1 | tr -d "\t")
|
||||||
|
install_name_tool -change ${CURLIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
|
||||||
fi
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue