mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-04-01 09:31:20 +08:00
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:
2
Rakefile
2
Rakefile
@@ -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)
|
||||
|
||||
@@ -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')
|
||||
|
||||
BIN
resources/Default-568h@2x.png
Normal file
BIN
resources/Default-568h@2x.png
Normal file
Binary file not shown.
|
After Width: | Height: | Size: 2.3 KiB |
Reference in New Issue
Block a user