Method: Flutter::Upload#check_build_type

Defined in:
lib/upload.rb

#check_build_typeObject



70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
# File 'lib/upload.rb', line 70

def check_build_type
  return unless !@product_type || @product_type.empty?

  puts "您构建了多个类型的产物:"
  puts "[1]: debug"
  puts "[2]: profile"
  puts "[3]: release"
  print "请选择一个上传(退出,请选择'q/Q'):"
  input = $stdin.gets.chomp
  exit if input.casecmp("q").zero?
  @product_type = @product_map[input.to_i]
  return if @product_type

  print TTY::Box.error("请选择正确的构建类型")
  exit
end