mirror of
https://github.com/f-droid/fdroidserver.git
synced 2025-11-05 15:00:30 +03:00
Add build tools 18.0.1
This commit is contained in:
parent
a2e81658ef
commit
8cf3b9ec5d
1 changed files with 17 additions and 15 deletions
|
|
@ -23,25 +23,27 @@ execute "add-android-sdk-path" do
|
||||||
not_if "grep #{sdk_loc} /home/#{user}/.bashrc"
|
not_if "grep #{sdk_loc} /home/#{user}/.bashrc"
|
||||||
end
|
end
|
||||||
|
|
||||||
script "add_build_tools" do
|
%w{17.0.0 18.0.1}.each do |ver|
|
||||||
|
|
||||||
|
script "add_build_tools_#{ver}" do
|
||||||
interpreter "bash"
|
interpreter "bash"
|
||||||
user user
|
user user
|
||||||
cwd "/tmp"
|
cwd "/tmp"
|
||||||
code "
|
code "
|
||||||
if [ -f /vagrant/cache/build-tools/17.0.0.tar.gz ] ; then
|
if [ -f /vagrant/cache/build-tools/#{ver}.tar.gz ] ; then
|
||||||
echo Installing from cache
|
echo Installing from cache
|
||||||
mkdir #{sdk_loc}/build-tools
|
mkdir #{sdk_loc}/build-tools
|
||||||
tar -C #{sdk_loc}/build-tools -z -x -f /vagrant/cache/build-tools/17.0.0.tar.gz
|
tar -C #{sdk_loc}/build-tools -z -x -f /vagrant/cache/build-tools/#{ver}.tar.gz
|
||||||
else
|
else
|
||||||
#{sdk_loc}/tools/android update sdk --no-ui -a -t build-tools-17.0.0 <<X
|
#{sdk_loc}/tools/android update sdk --no-ui -a -t build-tools-#{ver} <<X
|
||||||
y
|
y
|
||||||
|
|
||||||
X
|
X
|
||||||
fi
|
fi
|
||||||
"
|
"
|
||||||
not_if "test -d #{sdk_loc}/build-tools/17.0.0"
|
not_if "test -d #{sdk_loc}/build-tools/#{ver}"
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
%w{android-3 android-4 android-7 android-8 android-10 android-11
|
%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 android-18
|
android-12 android-13 android-14 android-15 android-16 android-17 android-18
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue