run rome from project folder

This commit is contained in:
Ivan Smolin 2020-01-22 18:17:11 +03:00
parent 1a1381dd19
commit b2a07d79c3
1 changed files with 4 additions and 4 deletions

View File

@ -21,18 +21,18 @@ private_lane :installDependencies do |options|
use_rome = File.exists? "../Romefile"
swift_version = sh("xcrun swift --version | head -1 | sed 's/.*\\(\(.*\)\\).*/\\1/' | tr -d \"()\" | tr \" \" \"-\"").chop
rome_path = "../Pods/Rome/rome"
rome_options = "--platform iOS --cache-prefix #{swift_version} --romefile ../Romefile"
rome_path = "Pods/Rome/rome"
rome_options = "--platform iOS --cache-prefix #{swift_version} --romefile Romefile"
carthage_install = lambda do
if use_rome
sh("#{rome_path} download #{rome_options}")
sh("cd .. && #{rome_path} download #{rome_options}")
end
carthage(command: "bootstrap", platform: "iOS", cache_builds: true)
if use_rome
sh("#{rome_path} list --missing #{rome_options} | awk '{print $1}' | xargs #{rome_path} upload #{rome_options}")
sh("cd .. && #{rome_path} list --missing #{rome_options} | awk '{print $1}' | xargs -I framework_name #{rome_path} upload framework_name #{rome_options}")
end
end