From 88255a80d8a31c2fd1ad2f6af4fdcc272ee2703a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Eloy=20Dur=C3=A1n?= Date: Thu, 1 May 2014 12:46:39 +0200 Subject: [PATCH] [builder] Do not try to compile completely empty .strings files. Fixes http://hipbyte.myjetbrains.com/youtrack/issue/RM-483 --- lib/motion/project/builder.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/lib/motion/project/builder.rb b/lib/motion/project/builder.rb index 21685d68..9f94163c 100644 --- a/lib/motion/project/builder.rb +++ b/lib/motion/project/builder.rb @@ -518,8 +518,10 @@ EOS end def compile_resource_to_binary_plist(path) - App.info 'Compile', path - sh "/usr/bin/plutil -convert binary1 \"#{path}\"" + unless File.size(path) == 0 + App.info 'Compile', path + sh "/usr/bin/plutil -convert binary1 \"#{path}\"" + end end def copy_resource(res_path, dest_path)