2014-05-02 15:55:34 +03:00
|
|
|
if [ -f ../.osx_dependencies_installed ];
|
|
|
|
then
|
|
|
|
echo "OS X prebuilt dependencies are already installled"
|
|
|
|
else
|
2014-05-02 17:02:55 +03:00
|
|
|
# Download and unpack OS X prebuilt dependencies
|
2014-05-02 16:04:12 +03:00
|
|
|
curl -o ../xcode-pack.zip -L http://download.vcmi.eu/xcode-pack.zip
|
2014-05-02 15:55:34 +03:00
|
|
|
unzip ../xcode-pack.zip -d ../
|
2014-06-04 16:36:00 +03:00
|
|
|
rm -rf ../__MACOSX
|
2014-05-02 17:02:55 +03:00
|
|
|
|
|
|
|
# Build vcmibuilder
|
|
|
|
xcodebuild -project osx/osx-vcmibuilder/vcmibuilder.xcodeproj/ -configuration Release
|
|
|
|
mv osx/osx-vcmibuilder/build/Release/vcmibuilder.app osx/vcmibuilder.app
|
|
|
|
|
2014-05-02 15:55:34 +03:00
|
|
|
touch ../.osx_dependencies_installed
|
|
|
|
fi
|