Cache main sdk/ndk downloads

This commit is contained in:
Ciaran Gultnieks 2013-05-25 13:55:16 +01:00
parent ca717e33d7
commit ee0e3253b5
3 changed files with 32 additions and 5 deletions

View file

@ -7,8 +7,7 @@ script "setup-android-ndk" do
user node[:settings][:user]
cwd "/tmp"
code "
wget http://dl.google.com/android/ndk/android-ndk-r8e-linux-x86.tar.bz2
tar jxvf android-ndk-r8e-linux-x86.tar.bz2
tar jxvf /vagrant/cache/android-ndk-r8e-linux-x64.tar.bz2
mv android-ndk-r8e #{ndk_loc}
"
not_if do

View file

@ -13,10 +13,8 @@ script "setup-android-sdk" do
user user
cwd "/tmp"
code "
wget http://dl.google.com/android/android-sdk_r21.0.1-linux.tgz
tar zxvf android-sdk_r21.0.1-linux.tgz
tar zxvf /vagrant/cache/android-sdk_r21.0.1-linux.tgz
mv android-sdk-linux #{sdk_loc}
rm android-sdk_r21.0.1-linux.tgz
#{sdk_loc}/tools/android update sdk --no-ui -t platform-tool
#{sdk_loc}/tools/android update sdk --no-ui -t tool
"