cert/lib/cert/options.rb in fastlane_hotfix-2.165.1 vs cert/lib/cert/options.rb in fastlane_hotfix-2.187.0
- old
+ new
@@ -36,19 +36,19 @@
default_value: FastlaneCore::Helper.mac? && FastlaneCore::Helper.xcode_at_least?('11'),
default_value_dynamic: true),
# App Store Connect API
FastlaneCore::ConfigItem.new(key: :api_key_path,
- env_name: "DELIVER_API_KEY_PATH",
+ env_names: ["CERT_API_KEY_PATH", "DELIVER_API_KEY_PATH", "APP_STORE_CONNECT_API_KEY_PATH"],
description: "Path to your App Store Connect API Key JSON file (https://docs.fastlane.tools/app-store-connect-api/#using-fastlane-api-key-json-file)",
optional: true,
conflicting_options: [:api_key],
verify_block: proc do |value|
UI.user_error!("Couldn't find API key JSON file at path '#{value}'") unless File.exist?(value)
end),
FastlaneCore::ConfigItem.new(key: :api_key,
- env_name: "DELIVER_API_KEY",
+ env_names: ["CERT_API_KEY", "DELIVER_API_KEY", "APP_STORE_CONNECT_API_KEY"],
description: "Your App Store Connect API Key information (https://docs.fastlane.tools/app-store-connect-api/#use-return-value-and-pass-in-as-an-option)",
type: Hash,
optional: true,
sensitive: true,
conflicting_options: [:api_key_path]),
@@ -56,10 +56,11 @@
# Apple ID
FastlaneCore::ConfigItem.new(key: :username,
short_option: "-u",
env_name: "CERT_USERNAME",
description: "Your Apple ID Username",
+ optional: true,
default_value: user,
default_value_dynamic: true),
FastlaneCore::ConfigItem.new(key: :team_id,
short_option: "-b",
env_name: "CERT_TEAM_ID",
@@ -107,24 +108,24 @@
end),
FastlaneCore::ConfigItem.new(key: :keychain_password,
short_option: "-p",
env_name: "CERT_KEYCHAIN_PASSWORD",
sensitive: true,
- description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your account password",
+ description: "This might be required the first time you access certificates on a new mac. For the login/default keychain this is your macOS account password",
optional: true),
FastlaneCore::ConfigItem.new(key: :skip_set_partition_list,
short_option: "-P",
env_name: "CERT_SKIP_SET_PARTITION_LIST",
description: "Skips setting the partition list (which can sometimes take a long time). Setting the partition list is usually needed to prevent Xcode from prompting to allow a cert to be used for signing",
type: Boolean,
default_value: false),
FastlaneCore::ConfigItem.new(key: :platform,
env_name: "CERT_PLATFORM",
- description: "Set the provisioning profile's platform (ios, macos)",
+ description: "Set the provisioning profile's platform (ios, macos, tvos)",
default_value: "ios",
verify_block: proc do |value|
value = value.to_s
- pt = %w(macos ios)
+ pt = %w(macos ios tvos)
UI.user_error!("Unsupported platform, must be: #{pt}") unless pt.include?(value)
end)
]
end
end