mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-30 09:33:26 +08:00
don't check for updates if we build a target
This commit is contained in:
@@ -36,9 +36,11 @@ if Motion::Project::App.template == nil
|
||||
require 'motion/project/template/ios'
|
||||
end
|
||||
|
||||
# Check for updates.
|
||||
motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion')
|
||||
system("/usr/bin/ruby \"#{motion_bin_path}\" update --check")
|
||||
unless ENV['RM_TARGET_BUILD']
|
||||
# Check for updates.
|
||||
motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion')
|
||||
system("/usr/bin/ruby \"#{motion_bin_path}\" update --check")
|
||||
end
|
||||
|
||||
desc "Clear local build objects"
|
||||
task :clean do
|
||||
|
||||
Reference in New Issue
Block a user