lib/tasks/build.rb in dev-2.0.177 vs lib/tasks/build.rb in dev-2.0.178

- old
+ new

@@ -34,15 +34,27 @@ } end } WXS_FILES.each{|wxs_file| - build_commands = Wix.get_build_commands wxs_file - if(!build_commands.nil?) + if(IO.read(wxs_file).include?('<Project')) + build_commands = Wix.get_build_commands wxs_file + if(!build_commands.nil?) build_commands.each{|c| self.add c } - end + end + end + } + WXS_FILES.each{|wxs_file| + if(IO.read(wxs_file).include?('<Bundle')) + build_commands = Wix.get_build_commands wxs_file + if(!build_commands.nil?) + build_commands.each{|c| + self.add c + } + end + end } end end end \ No newline at end of file