Sha256: ffad1f7474194c1b6eaf341f199e78a72f53f87dd512347bd3d6b3612fbb50b8

Contents?: true

Size: 953 Bytes

Versions: 80

Compression:

Stored size: 953 Bytes

Contents

puts __FILE__ if defined?(DEBUG)

#
# 
#
class Wix
	def self.get_build_commands wxs_file
      build_commands=nil
      if(File.exists?(wxs_file))
         if(Environment.windows?)
            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
      end
      build_commands
    end
end

Version data entries

80 entries across 80 versions & 1 rubygems

Version Path
dev-2.1.18 lib/apps/wix.rb
dev-2.1.17 lib/apps/wix.rb
dev-2.1.16 lib/apps/wix.rb
dev-2.1.15 lib/apps/wix.rb
dev-2.1.14 lib/apps/wix.rb
dev-2.1.13 lib/apps/wix.rb
dev-2.1.12 lib/apps/wix.rb
dev-2.1.11 lib/apps/wix.rb
dev-2.1.10 lib/apps/wix.rb
dev-2.1.9 lib/apps/wix.rb
dev-2.1.8 lib/apps/wix.rb
dev-2.1.7 lib/apps/wix.rb
dev-2.1.6 lib/apps/wix.rb
dev-2.1.5 lib/apps/wix.rb
dev-2.1.4 lib/apps/wix.rb
dev-2.1.3 lib/apps/wix.rb
dev-2.1.2 lib/apps/wix.rb
dev-2.1.1 lib/apps/wix.rb
dev-2.1.0 lib/apps/wix.rb
dev-2.0.298 lib/apps/wix.rb