Sha256: 3935d53f63599bf7751c7cc60dc627b8fb17942066ba60e69e4f15dd4894bd9b

Contents?: true

Size: 904 Bytes

Versions: 12

Compression:

Stored size: 904 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'))
            extensions=''
            ['WixNetFxExtension','WixBalExtension','WixUtilExtension','WixUiExtension'].each{|e|
                  extensions="#{extensions}-ext #{e} "
            }
      	build_commands=Array.new if build_commands.nil?
      	build_commands << "candle #{wxs_file} #{extensions}"
            
      	if(defined?(VERSION))
      		build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -out #{File.basename(wxs_file,'.*')}-#{VERSION}.#{ext} #{extensions}"
      	else
      		build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj #{extensions}"
      	end
      end
      build_commands
    end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
dev-2.0.277 lib/apps/wix.rb
dev-2.0.276 lib/apps/wix.rb
dev-2.0.275 lib/apps/wix.rb
dev-2.0.274 lib/apps/wix.rb
dev-2.0.273 lib/apps/wix.rb
dev-2.0.272 lib/apps/wix.rb
dev-2.0.271 lib/apps/wix.rb
dev-2.0.270 lib/apps/wix.rb
dev-2.0.269 lib/apps/wix.rb
dev-2.0.268 lib/apps/wix.rb
dev-2.0.267 lib/apps/wix.rb
dev-2.0.266 lib/apps/wix.rb