Merge pull request #215 from TouchInstinct/fix/create_push_certificate
fix CreatePushCertificate lane
This commit is contained in:
commit
661e716d6c
|
|
@ -91,7 +91,7 @@ private_lane :addShield do |options|
|
|||
.split(/(?=[A-Z])/) # -> ["Enterprise", "Customer", "Dev1", "Without", "S", "S", "L", "Pinning", "Release"]
|
||||
.map { |v| v.gsub(/[[:lower:]]+/, "") }[1..2] # -> ["E", "C", "D1", "W", "S", "S", "L", "P", "R"] -> ["C", "D1"]
|
||||
.join # -> "CD1"
|
||||
|
||||
|
||||
begin
|
||||
add_badge(
|
||||
shield: "#{buildDescription}-#{buildNumber}-green",
|
||||
|
|
@ -186,7 +186,10 @@ private_lane :buildArchive do |options|
|
|||
)
|
||||
end
|
||||
|
||||
lane :createPushCertificate do |options|
|
||||
lane :CreatePushCertificate do |options|
|
||||
configuration = get_configuration_for_type(options[:type] || "development")
|
||||
options = configuration.to_options.merge(options)
|
||||
|
||||
certificates_path = File.expand_path "../Certificates"
|
||||
Dir.mkdir(certificates_path) unless File.directory?(certificates_path)
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue