deliver/lib/deliver/options.rb in fastlane-2.28.5 vs deliver/lib/deliver/options.rb in fastlane-2.28.6

- old
+ new

@@ -35,11 +35,11 @@ FastlaneCore::ConfigItem.new(key: :ipa, short_option: "-i", optional: true, env_name: "DELIVER_IPA_PATH", description: "Path to your ipa file", - default_value: Dir["*.ipa"].first, + default_value: Dir["*.ipa"].sort_by { |x| File.mtime(x) }.last, verify_block: proc do |value| UI.user_error!("Could not find ipa file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be an ipa file") unless value.end_with?(".ipa") end, conflicting_options: [:pkg], @@ -49,10 +49,10 @@ FastlaneCore::ConfigItem.new(key: :pkg, short_option: "-c", optional: true, env_name: "DELIVER_PKG_PATH", description: "Path to your pkg file", - default_value: Dir["*.pkg"].first, + default_value: Dir["*.pkg"].sort_by { |x| File.mtime(x) }.last, verify_block: proc do |value| UI.user_error!("Could not find pkg file at path '#{File.expand_path(value)}'") unless File.exist?(value) UI.user_error!("'#{value}' doesn't seem to be a pkg file") unless value.end_with?(".pkg") end, conflicting_options: [:ipa],