#!/bin/bashif[!-d /Volumes/RAMDisk ];thenecho'RAM Disk not found'echo'Only used for App Store builds. It will not work on your computer.'exit 1fi#-- Set to my local installationQMAKE=/Applications/Qt/5.5/ios/bin/qmake#-- Using Travis variables as this will eventually live thereSHADOW_BUILD_DIR=/Volumes/RAMDisk/build-qgroundcontrol-iOS-ReleaseTRAVIS_BUILD_DIR=/Users/gus/github/work/qgroundcontrol#-- Build itmkdir-p${SHADOW_BUILD_DIR}&&cd${SHADOW_BUILD_DIR}&&${QMAKE}-r${TRAVIS_BUILD_DIR}/qgroundcontrol.pro CONFIG+=WarningsAsErrorsOn CONFIG-=debug_and_release CONFIG+=release CONFIG+=ForAppStore &&xcodebuild -configuration Release -xcconfig${TRAVIS_BUILD_DIR}/ios/qgroundcontrol_appstore.xcconfig