mirror of
https://github.com/zhigang1992/RubyMotion.git
synced 2026-01-12 22:51:55 +08:00
Fix .strings compilation
This commit is contained in:
@@ -459,7 +459,7 @@ EOS
|
||||
if File.exist?(dir)
|
||||
Dir.glob(File.join(dir, '{,**/}*.strings')).each do |strings_path|
|
||||
res_path = strings_path
|
||||
dest_path = path_on_resources_dirs(config.resources_dirs, res_path)
|
||||
dest_path = File.join(app_resources_dir, path_on_resources_dirs(config.resources_dirs, res_path))
|
||||
|
||||
if !File.exist?(dest_path) or File.mtime(res_path) > File.mtime(dest_path)
|
||||
unless File.size(res_path) == 0
|
||||
@@ -467,6 +467,8 @@ EOS
|
||||
sh "/usr/bin/plutil -convert binary1 \"#{res_path}\" -o \"#{dest_path}\""
|
||||
end
|
||||
end
|
||||
|
||||
preserve_resources << path_on_resources_dirs(config.resources_dirs, res_path)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user