mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-03-30 23:24:11 +08:00
just remove the path which ends with `.lproj'
This patch will - remove "./resources/en.lproj" path - accept "./resources/en.lproj/MainStoryboard.storyboardc" If we accepted "./resources/en.lproj", it will allow to copy all the files in "./resources/en.lproj" directory. However, we need to reject "./resources/en.lproj/MainStoryboard.storyboard". So, we just remove "./resources/en.lproj" path.
This commit is contained in:
@@ -426,7 +426,7 @@ EOS
|
||||
'Info.plist', 'PkgInfo', 'ResourceRules.plist',
|
||||
convert_filesystem_encoding(config.name)
|
||||
]
|
||||
resources_exclude_extnames = ['.xib', '.storyboard', '.xcdatamodeld', '.lproj', '.atlas', '.xcassets']
|
||||
resources_exclude_extnames = ['.xib', '.storyboard', '.xcdatamodeld', '.atlas', '.xcassets']
|
||||
resources_paths = []
|
||||
config.resources_dirs.each do |dir|
|
||||
if File.exist?(dir)
|
||||
@@ -434,8 +434,9 @@ EOS
|
||||
Dir.glob('**{,/*/**}/*').reject do |x|
|
||||
# Find files with extnames to exclude or files inside bundles to
|
||||
# exclude (e.g. xcassets).
|
||||
resources_exclude_extnames.include?(File.extname(x)) ||
|
||||
resources_exclude_extnames.include?(File.extname(x.split('/').first))
|
||||
File.extname(x) == '.lproj' ||
|
||||
resources_exclude_extnames.include?(File.extname(x)) ||
|
||||
resources_exclude_extnames.include?(File.extname(x.split('/').first))
|
||||
end.map { |file| File.join(dir, file) }
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user