ios-deploy, download ios-sim from s3

This commit is contained in:
Slava Kim
2014-08-12 17:17:41 -07:00
parent 97007f2441
commit c889dfdc76

View File

@@ -75,15 +75,30 @@ cd build
# ios-sim is used to run iPhone simulator from the command-line. Doesn't make
# sense to build it for linux.
if [ "$OS" == "osx" ]; then
which rake # rake is required to build ios-sim
git clone https://github.com/phonegap/ios-sim.git
cd ios-sim
git checkout 2.0.1
rake build
which build/Release/ios-sim # check that we have in fact got the binary
# the build from source is not going to work on old OS X versions, until we
# upgrade our Mac OS X Jenkins machine, download the precompiled tarball
# which rake # rake is required to build ios-sim
# git clone https://github.com/phonegap/ios-sim.git
# cd ios-sim
# git checkout 2.0.1
# rake build
# which build/Release/ios-sim # check that we have in fact got the binary
# mkdir -p "$DIR/lib/ios-sim"
# cp -r build/Release/* "$DIR/lib/ios-sim/"
# Download the precompiled tarball
IOS_SIM_URL="http://android-bundle.s3.amazonaws.com/ios-sim.tgz"
curl "$IOS_SIM_URL" | tar xfz -
mkdir -p "$DIR/lib/ios-sim"
cp -r build/Release/* "$DIR/lib/ios-sim/"
echo "done building ios-sim"
cp -r ios-sim/ios-sim "$DIR/lib/ios-sim"
git clone https://github.com/phonegap/ios-deploy.git
cd ios-deploy
make
cd ..
mkdir -p "$DIR/lib/ios-deploy"
cp -r ios-deploy/ios-deploy "$DIR/lib/ios-deploy"
fi