diff --git a/scripts/generate-dev-bundle.sh b/scripts/generate-dev-bundle.sh index 21c152fbe3..ed52d1c618 100755 --- a/scripts/generate-dev-bundle.sh +++ b/scripts/generate-dev-bundle.sh @@ -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