mirror of
https://github.com/subsurface/subsurface.git
synced 2025-02-19 22:16:15 +00:00
updated build scripts for Mac
Signed-off-by: Dirk Hohndel <dirk@hohndel.org>
This commit is contained in:
parent
c580122727
commit
818031e604
2 changed files with 20 additions and 13 deletions
|
@ -22,25 +22,32 @@ LIBRARY_PATH=${DIR}/install-root/lib make install
|
||||||
|
|
||||||
# now adjust a few references that macdeployqt appears to miss
|
# now adjust a few references that macdeployqt appears to miss
|
||||||
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
|
EXECUTABLE=Subsurface.app/Contents/MacOS/Subsurface
|
||||||
for i in libssh libssrfmarblewidget libgit2; do
|
for i in libssh libssrfmarblewidget libgit2 libGrantlee_TextDocument.dylib libGrantlee_Templates.dylib; do
|
||||||
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
|
OLD=$(otool -L ${EXECUTABLE} | grep $i | cut -d\ -f1 | tr -d "\t")
|
||||||
cp ${DIR}/install-root/lib/$(basename ${OLD}) Subsurface.app/Contents/Frameworks
|
if [ ! -z ${OLD} ] ; then
|
||||||
SONAME=$(basename $OLD)
|
cp ${DIR}/install-root/lib/$(basename ${OLD}) Subsurface.app/Contents/Frameworks
|
||||||
install_name_tool -change ${OLD} @executable_path/../Frameworks/${SONAME} ${EXECUTABLE}
|
SONAME=$(basename $OLD)
|
||||||
if [[ "$i" = "libssh" ]] ; then
|
install_name_tool -change ${OLD} @executable_path/../Frameworks/${SONAME} ${EXECUTABLE}
|
||||||
LIBSSH=$(basename ${OLD})
|
if [[ "$i" = "libssh" ]] ; then
|
||||||
fi
|
LIBSSH=$(basename ${OLD})
|
||||||
if [[ "$i" = "libgit2" ]] ; then
|
fi
|
||||||
install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
|
if [[ "$i" = "libgit2" && ! -z ${LIBSSH} ]] ; then
|
||||||
|
install_name_tool -change ${LIBSSH} @executable_path/../Frameworks/${LIBSSH} Subsurface.app/Contents/Frameworks/${SONAME}
|
||||||
|
fi
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
RPATH=$(otool -L ${EXECUTABLE} | grep rpath | cut -d\ -f1 | tr -d "\t" | cut -b 8- )
|
RPATH=$(otool -L ${EXECUTABLE} | grep rpath | cut -d\ -f1 | tr -d "\t" | cut -b 8- )
|
||||||
for i in ${RPATH}; do
|
for i in ${RPATH}; do
|
||||||
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE}
|
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${EXECUTABLE}
|
||||||
done
|
done
|
||||||
|
MARBLELIB=$(ls Subsurface.app/Contents/Frameworks/libssrfmarblewidget*dylib)
|
||||||
|
RPATH=$(otool -L ${MARBLELIB} | 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 ${MARBLELIB}
|
||||||
|
done
|
||||||
|
|
||||||
# next deal with libGrantlee
|
# next deal with libGrantlee
|
||||||
LIBG=Subsurface.app/Contents/Frameworks/libGrantlee_Templates.5.dylib
|
LIBG=$(ls Subsurface.app/Contents/Frameworks/libGrantlee_Templates*dylib)
|
||||||
for i in QtScript.framework/Versions/5/QtScript QtCore.framework/Versions/5/QtCore ; do
|
for i in QtScript.framework/Versions/5/QtScript QtCore.framework/Versions/5/QtCore ; do
|
||||||
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${LIBG}
|
install_name_tool -change @rpath/$i @executable_path/../Frameworks/$i ${LIBG}
|
||||||
done
|
done
|
||||||
|
|
|
@ -32,14 +32,14 @@ for i in \
|
||||||
./Subsurface.app//Contents/Frameworks/QtWebChannel.framework/Versions/5/QtWebChannel \
|
./Subsurface.app//Contents/Frameworks/QtWebChannel.framework/Versions/5/QtWebChannel \
|
||||||
./Subsurface.app//Contents/Frameworks/*.dylib
|
./Subsurface.app//Contents/Frameworks/*.dylib
|
||||||
do
|
do
|
||||||
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s Dirk $i
|
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" $i
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -- signing plugins
|
echo -- signing plugins
|
||||||
for i in $(find ./Subsurface.app/Contents/PlugIns -name \*.dylib -o -name \*.so)
|
for i in $(find ./Subsurface.app/Contents/PlugIns -name \*.dylib -o -name \*.so)
|
||||||
do
|
do
|
||||||
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s Dirk $i
|
codesign --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" $i
|
||||||
done
|
done
|
||||||
|
|
||||||
echo -- finally sign .app
|
echo -- finally sign .app
|
||||||
codesign -v --keychain /Users/hohndel/Library/Keychains/login.keychain -s Dirk ./Subsurface.app
|
codesign -v --keychain /Users/hohndel/Library/Keychains/login.keychain -s "Developer ID Application: Dirk Hohndel" ./Subsurface.app
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue