cert/lib/cert/runner.rb in fastlane-2.140.0 vs cert/lib/cert/runner.rb in fastlane-2.141.0
- old
+ new
@@ -132,9 +132,22 @@
certificate_type.all
end
# The kind of certificate we're interested in
def certificate_type
+ if Cert.config[:type]
+ case Cert.config[:type].to_sym
+ when :mac_installer_distribution
+ return Spaceship.certificate.mac_installer_distribution
+ when :developer_id_application
+ return Spaceship.certificate.developer_id_application
+ when :developer_id_installer
+ return Spaceship.certificate.developer_id_installer
+ else
+ UI.user_error("Unaccepted value for :type - #{Cert.config[:type]}")
+ end
+ end
+
# Check if apple certs (Xcode 11 and later) should be used
if Cert.config[:generate_apple_certs]
cert_type = Spaceship.certificate.apple_distribution
cert_type = Spaceship.certificate.in_house if Spaceship.client.in_house? # Enterprise doesn't use Apple Distribution
cert_type = Spaceship.certificate.apple_development if Cert.config[:development]