mirror of
https://github.com/bluszcz/cutego.git
synced 2024-09-29 05:35:16 +03:00
48 lines
1.8 KiB
Bash
Executable file
48 lines
1.8 KiB
Bash
Executable file
#!/bin/sh
|
|
set -ev
|
|
|
|
#download and install qt
|
|
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
|
|
/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
|
|
diskutil unmountDisk disk1
|
|
rm -f /tmp/$QT
|
|
|
|
if [ "$ANDROID" == "true" ]
|
|
then
|
|
#download and install android sdk
|
|
SDK=android-sdk_r24.4.1-macosx.zip
|
|
curl -sL --retry 3 -o /tmp/$SDK https://dl.google.com/android/$SDK
|
|
unzip -qq /tmp/$SDK -d $HOME
|
|
rm -f /tmp/$SDK
|
|
|
|
#install deps for android sdk
|
|
echo "y" | $HOME/android-sdk-macosx/tools/android -s update sdk -f -u -a -t 1,2,4,31
|
|
|
|
#download and install android ndk
|
|
NDK=android-ndk-r12b-darwin-x86_64.zip
|
|
curl -sL --retry 3 -o /tmp/$NDK https://dl.google.com/android/repository/$NDK
|
|
unzip -qq /tmp/$NDK -d $HOME
|
|
rm -f /tmp/$NDK
|
|
fi
|
|
|
|
if [ "$SAILFISH" == "true" ]
|
|
then
|
|
#download and install virtualbox
|
|
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
|
|
sudo installer -pkg /Volumes/VirtualBox/VirtualBox.pkg -target /
|
|
diskutil unmountDisk disk1
|
|
rm -f /tmp/$VBOX
|
|
|
|
#download and install sailfish sdk
|
|
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
|
|
/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
|
|
diskutil unmountDisk disk1
|
|
rm -f /tmp/$SFDK
|
|
fi
|