use find to find app bundle

This commit is contained in:
itsmattkc
2019-09-11 20:16:26 +10:00
parent 7b15a63e06
commit 44169396c1
+5 -6
View File
@@ -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