Change Homebrew dependency handling

This commit is contained in:
Vitaliy Salnikov 2020-05-18 18:59:33 +03:00
parent e2399629c3
commit e52308fc6c
1 changed files with 5 additions and 2 deletions

View File

@ -11,8 +11,11 @@ private_lane :installDependencies do |options|
sh("rm -rf #{podsReposPath}")
end
if File.exists? "../Brewfile"
sh("brew bundle --file ../Brewfile")
brew_dependencies = "imagemagick"
sh "brew ls --versions #{brew_dependencies}" do |status, output, command|
unless status.success?
sh("brew install #{brew_dependencies}")
end
end
if File.exists? "../Gemfile"