add a feature which creates Default-568h@2x.png' in resource directory by motion create' in order to support 4-inch screen by default

This commit is contained in:
Watson
2013-02-12 12:02:45 +09:00
parent 771b42c674
commit 2ebbd0d9f8
3 changed files with 6 additions and 0 deletions

View File

@@ -94,6 +94,8 @@ task :install do
#data.concat(Dir.glob('./sample/**/*').reject { |path| path =~ /build/ })
data.reject! { |path| /^\./.match(File.basename(path)) }
data.concat(Dir.glob('./resources/**/*'))
motiondir = '/Library/RubyMotion'
destdir = (ENV['DESTDIR'] || '/')
destmotiondir = File.join(destdir, motiondir)

View File

@@ -138,6 +138,10 @@ EOS
end
App.log 'Create', File.join(app_name, 'resources')
Dir.mkdir('resources')
Dir.glob("#{$motion_libdir}/../resources/**/*").each do |file|
App.log 'Create', File.join(app_name, 'resources', File.basename(file))
FileUtils.cp(file, 'resources')
end
App.log 'Create', File.join(app_name, 'spec')
Dir.mkdir('spec')
App.log 'Create', File.join(app_name, 'spec/main_spec.rb')

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB