use find to find app bundle
This commit is contained in:
+5
-6
@@ -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
|
||||
|
||||
|
||||
Reference in New Issue
Block a user