diff --git a/.travis/script.sh b/.travis/script.sh index b020771c4..a7ffe5f5d 100644 --- a/.travis/script.sh +++ b/.travis/script.sh @@ -8,18 +8,17 @@ if [[ "$TRAVIS_OS_NAME" == "osx" ]]; then # Make make -j$(sysctl -n hw.ncpu) - # Move Qt deps into bundle - cd app/CMakeFiles/Olive.dir + BUNDLE_PATH=$(find . -name "Olive.app") - macdeployqt Olive.app + # Move Qt deps into bundle + macdeployqt $BUNDLE_PATH # Fix other deps that macdeployqt missed wget -c -nv https://github.com/arl/macdeployqtfix/raw/master/macdeployqtfix.py - python2 macdeployqtfix.py Olive.app/Contents/MacOS/Olive /usr/local/Cellar/qt5/5.*/ + python2 macdeployqtfix.py $BUNDLE_PATH/Contents/MacOS/Olive /usr/local/Cellar/qt5/5.*/ # Distribute in zip - zip -r Olive-$(git rev-parse --short HEAD)-macOS.zip Olive.app - mv *.zip ../../.. + zip -r Olive-$(git rev-parse --short HEAD)-macOS.zip $BUNDLE_PATH elif [[ "$TRAVIS_OS_NAME" == "linux" ]]; then