diff --git a/Rakefile b/Rakefile index 4b6174dd..48ba1a80 100644 --- a/Rakefile +++ b/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) diff --git a/lib/motion/project/app.rb b/lib/motion/project/app.rb index 2c823251..9fc103ad 100644 --- a/lib/motion/project/app.rb +++ b/lib/motion/project/app.rb @@ -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') diff --git a/resources/Default-568h@2x.png b/resources/Default-568h@2x.png new file mode 100644 index 00000000..0f9e292b Binary files /dev/null and b/resources/Default-568h@2x.png differ