download_dependencies.sh 507 B

123456789101112131415
  1. if [ -f ../.osx_dependencies_installed ];
  2. then
  3. echo "OS X prebuilt dependencies are already installled"
  4. else
  5. # Download and unpack OS X prebuilt dependencies
  6. curl -o ../xcode-pack.zip -L http://download.vcmi.eu/xcode-pack.zip
  7. unzip ../xcode-pack.zip -d ../
  8. rm -rf ../__MACOSX
  9. # Build vcmibuilder
  10. xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release
  11. mv osx/osx-vcmibuilder/build/Release/vcmibuilder.app osx/vcmibuilder.app
  12. touch ../.osx_dependencies_installed
  13. fi