Fix .strings compilation

This commit is contained in:
Mark Villacampa
2015-03-25 05:31:14 +01:00
committed by Watson
parent e726e2410e
commit 3c39c38fea

View File

@@ -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