mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-24 04:46:05 +08:00
[iOS rake] Add display env var support to watch task. Can be compact or regular.
This commit is contained in:
@@ -88,6 +88,7 @@ namespace :watch do
|
||||
sim = File.join(App.config.bindir, 'watch-sim')
|
||||
|
||||
command = "'#{sim}' '#{app}' -verbose #{App::VERBOSE ? 'YES' : 'NO'} -start-suspended #{ENV['no_continue'] ? 'YES' : 'NO'}"
|
||||
command << " -display #{ENV['display']}" if ENV['display']
|
||||
command << " -type #{ENV['type']}" if ENV['type']
|
||||
if ENV['type'] && ENV['type'].downcase == 'notification' && ENV['payload'].nil?
|
||||
App.fail '[!] The `notification` option is required with `type=notification`.'
|
||||
|
||||
Reference in New Issue
Block a user