From 987a6557c41e47795f8c382aa452addac60d7bf0 Mon Sep 17 00:00:00 2001 From: itsmattkc Date: Sat, 29 Feb 2020 09:34:20 +1100 Subject: [PATCH] travis: patch some more mac dependencies in after compile --- .travis/script.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/.travis/script.sh b/.travis/script.sh index 33feb95fd..9afa8e615 100644 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -19,6 +19,7 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then BUNDLE_NAME=Olive.app + # Move bundle to working directory mv app/$BUNDLE_NAME . # Move Qt deps into bundle @@ -28,6 +29,18 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then wget -c -nv https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py python2 macdeployqtfix.py $BUNDLE_NAME/Contents/MacOS/Olive /usr/local/Cellar/qt5/5.*/ + # Fix OpenEXR libs that seem to be missed by both macdeployqt _and_ macdeployqtfix + cd $BUNDLE_NAME/Contents/Frameworks + exrlib=(libImath-*.dylib libHalf-*.dylib libIexMath-*.dylib libIex-*.dylib libIlmThread-*.dylib) + + for a in ${exrlib[@]}; do + for b in ${exrlib[@]}; do + install_name_tool -change @rpath/$b @executable_path/../Frameworks/$b $a + done + done + + cd ../../.. + # Distribute in zip zip -r Olive-$VERSION-macOS.zip $BUNDLE_NAME