mirror of
https://gitlab.com/fdroid/fdroidserver.git
synced 2024-11-20 13:50:12 +01:00
Try to add maven support repo and ndk variables to recipes
This commit is contained in:
parent
d25b25fbb1
commit
b315968bea
@ -1,5 +1,18 @@
|
||||
|
||||
ndk_loc = node[:settings][:ndk_loc]
|
||||
user = node[:settings][:user]
|
||||
|
||||
execute "add-android-ndk-path" do
|
||||
user user
|
||||
command "echo \"export PATH=\\$PATH:#{ndk_loc} #PATH-NDK\" >> /home/#{user}/.bsenv"
|
||||
not_if "grep PATH-NDK /home/#{user}/.bsenv"
|
||||
end
|
||||
|
||||
execute "add-android-ndk-var" do
|
||||
user user
|
||||
command "echo \"export ANDROID_NDK=#{ndk_loc}\" >> /home/#{user}/.bsenv"
|
||||
not_if "grep ANDROID_NDK /home/#{user}/.bsenv"
|
||||
end
|
||||
|
||||
script "setup-android-ndk" do
|
||||
timeout 14400
|
||||
|
@ -29,6 +29,17 @@ execute "add-android-home" do
|
||||
not_if "grep ANDROID_HOME /home/#{user}/.bsenv"
|
||||
end
|
||||
|
||||
execute "add-maven-support-repo" do
|
||||
user user
|
||||
command "echo \"
|
||||
<settings><activeProfiles><activeProfile>android</activeProfile></activeProfiles>
|
||||
<profiles><profile><id>android</id><repositories><repository><id>android-support-repository</id>
|
||||
<url>file:///opt/android/sdk/extras/android/m2repository/</url>
|
||||
</repository></repositories></profile></profiles></settings>
|
||||
\" > /home/#{user}/.m2/settings.xml"
|
||||
not_if "grep m2repository /home/#{user}/.m2/settings.xml"
|
||||
end
|
||||
|
||||
%w{17.0.0 18.0.1}.each do |ver|
|
||||
|
||||
script "add_build_tools_#{ver}" do
|
||||
|
Loading…
Reference in New Issue
Block a user