2016-10-04 23:53:23 +03:00
|
|
|
#!/bin/sh
|
|
|
|
set -ev
|
|
|
|
|
|
|
|
#download and install qt
|
2016-10-06 03:15:20 +03:00
|
|
|
QT=qt-opensource-mac-x64-android-ios-5.7.0.dmg
|
|
|
|
curl -sL --retry 3 -o /tmp/$QT https://download.qt.io/official_releases/qt/5.7/5.7.0/$QT
|
|
|
|
hdiutil attach -noverify -noautofsck -quiet /tmp/$QT
|
2016-10-05 14:29:06 +03:00
|
|
|
/Volumes/qt-opensource-mac-x64-android-ios-5.7.0/qt-opensource-mac-x64-android-ios-5.7.0.app/Contents/MacOS/qt-opensource-mac-x64-android-ios-5.7.0 --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs
|
2016-10-05 15:37:43 +03:00
|
|
|
diskutil unmountDisk disk1
|
2016-10-06 03:15:20 +03:00
|
|
|
rm -f /tmp/$QT
|
2016-10-05 13:46:59 +03:00
|
|
|
|
2016-10-06 03:15:20 +03:00
|
|
|
if [ "$ANDROID" == "true" ]
|
2016-10-06 00:41:51 +03:00
|
|
|
then
|
2016-10-05 13:46:59 +03:00
|
|
|
#download and install android sdk
|
2016-10-06 03:15:20 +03:00
|
|
|
SDK=android-sdk_r24.4.1-macosx.zip
|
|
|
|
curl -sL --retry 3 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
2016-10-06 04:28:49 +03:00
|
|
|
unzip -qq /tmp/$SDK -d $HOME
|
2016-10-06 03:15:20 +03:00
|
|
|
rm -f /tmp/$SDK
|
2016-10-05 13:46:59 +03:00
|
|
|
|
|
|
|
#install deps for android sdk
|
2016-10-06 04:28:49 +03:00
|
|
|
echo "y" | $HOME/android-sdk-macosx/tools/android -s update sdk -f -u -a -t 1,2,4,31
|
2016-10-05 13:46:59 +03:00
|
|
|
|
|
|
|
#download and install android ndk
|
2016-10-06 03:15:20 +03:00
|
|
|
NDK=android-ndk-r12b-darwin-x86_64.zip
|
|
|
|
curl -sL --retry 3 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
2016-10-06 04:28:49 +03:00
|
|
|
unzip -qq /tmp/$NDK -d $HOME
|
2016-10-06 03:15:20 +03:00
|
|
|
rm -f /tmp/$NDK
|
2016-10-06 00:41:51 +03:00
|
|
|
fi
|
2016-10-05 13:46:59 +03:00
|
|
|
|
2016-10-06 03:15:20 +03:00
|
|
|
if [ "$SAILFISH" == "true" ]
|
2016-10-06 00:41:51 +03:00
|
|
|
then
|
2016-10-05 13:46:59 +03:00
|
|
|
#download and install virtualbox
|
2016-10-06 03:15:20 +03:00
|
|
|
VBOX=VirtualBox-5.1.6-110634-OSX.dmg
|
|
|
|
curl -sL --retry 3 -o /tmp/$VBOX http://download.virtualbox.org/virtualbox/5.1.6/$VBOX
|
|
|
|
hdiutil attach -noverify -noautofsck -quiet /tmp/$VBOX
|
2016-10-05 15:37:43 +03:00
|
|
|
sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /
|
|
|
|
diskutil unmountDisk disk1
|
2016-10-06 03:15:20 +03:00
|
|
|
rm -f /tmp/$VBOX
|
2016-10-05 13:46:59 +03:00
|
|
|
|
|
|
|
#download and install sailfish sdk
|
2016-10-06 03:15:20 +03:00
|
|
|
SFDK=SailfishOSSDK-Beta-1608-Qt5-mac-offline.dmg
|
|
|
|
curl -sL --retry 3 -o /tmp/$SFDK https://releases.sailfishos.org/sdk/installers/1608/$SFDK
|
|
|
|
hdiutil attach -noverify -noautofsck -quiet /tmp/$SFDK
|
2016-10-05 18:48:56 +03:00
|
|
|
/Volumes/SailfishOSSDK-mac-offline-160801/SailfishOSSDK-mac-offline-160801.app/Contents/MacOS/SailfishOSSDK-mac-offline-160801 --script $GOPATH/src/github.com/therecipe/qt/internal/ci/iscript.qs
|
2016-10-05 15:37:43 +03:00
|
|
|
diskutil unmountDisk disk1
|
2016-10-06 03:15:20 +03:00
|
|
|
rm -f /tmp/$SFDK
|
2016-10-06 00:41:51 +03:00
|
|
|
fi
|