mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
Define ANDROID_HOME on buildserver
This commit is contained in:
parent
68cdf05cad
commit
153c0c6f8f
@ -19,8 +19,14 @@ end
|
||||
execute "add-android-sdk-path" do
|
||||
user user
|
||||
path = "#{sdk_loc}/tools:#{sdk_loc}/platform-tools"
|
||||
command "echo \"export PATH=\\$PATH:#{path}\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep #{sdk_loc} /home/#{user}/.bashrc"
|
||||
command "echo \"export PATH=\\$PATH:#{path} #PATH-SDK\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep PATH-SDK /home/#{user}/.bashrc"
|
||||
end
|
||||
|
||||
execute "add-android-home" do
|
||||
user user
|
||||
command "echo \"export ANDROID_HOME=#{sdk_loc}\" >> /home/#{user}/.bashrc"
|
||||
not_if "grep ANDROID_HOME /home/#{user}/.bashrc"
|
||||
end
|
||||
|
||||
%w{17.0.0 18.0.1}.each do |ver|
|
||||
|
Loading…
Reference in New Issue
Block a user