Sha256: 90074dbed888245ce31d31355bd8eddb3f2b3f7c1c237ee8f5498cc7381a894e

Contents?: true

Size: 1.2 KB

Versions: 1

Compression:

Stored size: 1.2 KB

Contents

puts __FILE__ if defined?(DEBUG)

#
# 
#
class Wix
	def self.get_build_commands wxs_file
      build_commands=nil
      if(File.exists?(wxs_file))
      	build_commands=Array.new if build_commands.nil?
      	build_commands << "candle #{wxs_file}"

      	if(IO.read(wxs_file).include?('<Product'))
      		if(defined?(VERSION))
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -out #{File.basename(wxs_file,'.*')}-#{VERSION}.msi -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    else
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    end
      	end
      	if(IO.read(wxs_file).include?('<Bundle'))
      		if(defined?(VERSION))
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -out #{File.basename(wxs_file,'.*')}-#{VERSION}.exe -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    else
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    end
      	end
      end
      build_commands
    end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
dev-2.0.180 lib/apps/wix.rb