Sha256: 396789040a184b8df8d874ad315d60323e87928c707594ab845e4849bdd9fc67

Contents?: true

Size: 852 Bytes

Versions: 7

Compression:

Stored size: 852 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

#
# 
#
class Wix
	def self.get_build_commands wxs_file
      build_commands=nil
      if(File.exists?(wxs_file))
            ext='msi'
            ext='exe' if(IO.read(wxs_file).include?('<Bundle'))
      	build_commands=Array.new if build_commands.nil?
      	build_commands << "candle #{wxs_file} -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"

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

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
dev-2.0.264 lib/apps/wix.rb
dev-2.0.263 lib/apps/wix.rb
dev-2.0.262 lib/apps/wix.rb
dev-2.0.261 lib/apps/wix.rb
dev-2.0.260 lib/apps/wix.rb
dev-2.0.259 lib/apps/wix.rb
dev-2.0.258 lib/apps/wix.rb