mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-10 01:00:29 +03:00
Install build tools 17.0.0 on build server
Only the cached version is implemented, I haven't found the right 'android update sdk' command yet.
This commit is contained in:
parent
9ff536eae6
commit
9d6266c5a6
1 changed files with 16 additions and 0 deletions
|
|
@ -28,6 +28,22 @@ execute "add-android-sdk-path" do
|
|||
not_if "grep #{sdk_loc} /home/#{user}/.bashrc"
|
||||
end
|
||||
|
||||
script "add_build_tools" do
|
||||
interpreter "bash"
|
||||
user user
|
||||
cwd "/tmp"
|
||||
code "
|
||||
if [ -f /vagrant/cache/build-tools/17.0.0.tar.gz ] ; then
|
||||
echo Installing from cache
|
||||
tar -C #{sdk_loc}/build-tools -z -x -f /vagrant/cache/build-tools/17.0.0.tar.gz
|
||||
else
|
||||
echo Need the right install filter for this
|
||||
fi
|
||||
"
|
||||
not_if "test -d #{sdk_loc}/build-tools/17.0.0"
|
||||
end
|
||||
|
||||
|
||||
%w{android-3 android-4 android-7 android-8 android-10 android-11
|
||||
android-12 android-13 android-14 android-15 android-16 android-17
|
||||
extra-android-support}.each do |sdk|
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue