lib/susanoo/cli/project_interface/run.rb in susanoo-0.12.1 vs lib/susanoo/cli/project_interface/run.rb in susanoo-0.12.2

- old
+ new

@@ -7,14 +7,19 @@ included do map 'r' => :run_in desc 'run PLATFORM', 'Run application on PLATFORM.' + method_option :release, default: false def run_in(platform = :android) # Build the project first build + inside Susanoo::Project.path do - system "cordova run #{platform.to_s}" + debug_flag = '--debug' + debug_flag = '--release' if options[:release] + + system "cordova run #{platform.to_s} #{debug_flag}" end end end end