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.58 lib/apps/wix.rb
dev-2.1.57 lib/apps/wix.rb
dev-2.1.56 lib/apps/wix.rb
dev-2.1.55 lib/apps/wix.rb
dev-2.1.54 lib/apps/wix.rb
dev-2.1.53 lib/apps/wix.rb
dev-2.1.52 lib/apps/wix.rb
dev-2.1.51 lib/apps/wix.rb
dev-2.1.50 lib/apps/wix.rb
dev-2.1.49 lib/apps/wix.rb
dev-2.1.48 lib/apps/wix.rb
dev-2.1.47 lib/apps/wix.rb
dev-2.1.46 lib/apps/wix.rb
dev-2.1.45 lib/apps/wix.rb
dev-2.1.44 lib/apps/wix.rb
dev-2.1.43 lib/apps/wix.rb
dev-2.1.42 lib/apps/wix.rb
dev-2.1.41 lib/apps/wix.rb
dev-2.1.40 lib/apps/wix.rb
dev-2.1.39 lib/apps/wix.rb