mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-06-12 09:09:02 +08:00
add clean:all task which calls 'clean' then deletes ~/Library/RubyMotion/build
This commit is contained in:
committed by
Watson
parent
9534a30414
commit
e66590e62b
@@ -38,7 +38,7 @@ end
|
||||
motion_bin_path = File.join(File.dirname(__FILE__), '../../bin/motion')
|
||||
system("/usr/bin/ruby \"#{motion_bin_path}\" update --check")
|
||||
|
||||
desc "Clear build objects"
|
||||
desc "Clear local build objects"
|
||||
task :clean do
|
||||
App.info 'Delete', App.config.build_dir
|
||||
rm_rf(App.config.build_dir)
|
||||
@@ -50,6 +50,18 @@ task :clean do
|
||||
end
|
||||
end
|
||||
|
||||
namespace :clean do
|
||||
desc "Clean all build objects"
|
||||
task :all do
|
||||
Rake::Task["clean"].invoke
|
||||
path = Motion::Project::Builder.common_build_dir
|
||||
if File.exist?(path)
|
||||
App.info 'Delete', path
|
||||
rm_rf path
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
desc "Show project config"
|
||||
task :config do
|
||||
map = App.config.variables
|
||||
|
||||
Reference in New Issue
Block a user