mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-04 22:58:19 +08:00
move `rake crashlog' task into project.rb
This commit is contained in:
@@ -69,3 +69,9 @@ task :ctags do
|
||||
sh "#{ctags} --options=\"#{config}\" #{bs_files.map { |x| '"' + x + '"' }.join(' ')}"
|
||||
end
|
||||
end
|
||||
|
||||
desc "Show a last crash log"
|
||||
task :crashlog do
|
||||
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
|
||||
sh "open -a Console #{logs.last}"
|
||||
end
|
||||
|
||||
@@ -166,9 +166,3 @@ task :static do
|
||||
App.info 'Create', fat_lib
|
||||
sh "/usr/bin/lipo -create #{libs.join(' ')} -output \"#{fat_lib}\""
|
||||
end
|
||||
|
||||
desc "Show a last crash log"
|
||||
task :crashlog do
|
||||
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
|
||||
sh "open -a Console #{logs.last}"
|
||||
end
|
||||
|
||||
@@ -90,9 +90,3 @@ desc "Create a .a static library"
|
||||
task :static do
|
||||
App.build('MacOSX', :static => true)
|
||||
end
|
||||
|
||||
desc "Show a last crash log"
|
||||
task :crashlog do
|
||||
logs = Dir.glob(File.join(File.expand_path("~/Library/Logs/DiagnosticReports/"), "#{App.config.name}_*"))
|
||||
sh "open -a Console #{logs.last}"
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user