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.38 lib/apps/wix.rb
dev-2.1.37 lib/apps/wix.rb
dev-2.1.36 lib/apps/wix.rb
dev-2.1.35 lib/apps/wix.rb
dev-2.1.34 lib/apps/wix.rb
dev-2.1.33 lib/apps/wix.rb
dev-2.1.32 lib/apps/wix.rb
dev-2.1.31 lib/apps/wix.rb
dev-2.1.30 lib/apps/wix.rb
dev-2.1.29 lib/apps/wix.rb
dev-2.1.28 lib/apps/wix.rb
dev-2.1.27 lib/apps/wix.rb
dev-2.1.26 lib/apps/wix.rb
dev-2.1.25 lib/apps/wix.rb
dev-2.1.24 lib/apps/wix.rb
dev-2.1.23 lib/apps/wix.rb
dev-2.1.22 lib/apps/wix.rb
dev-2.1.21 lib/apps/wix.rb
dev-2.1.20 lib/apps/wix.rb
dev-2.1.19 lib/apps/wix.rb