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.0.297 lib/apps/wix.rb
dev-2.0.296 lib/apps/wix.rb
dev-2.0.295 lib/apps/wix.rb
dev-2.0.294 lib/apps/wix.rb
dev-2.0.293 lib/apps/wix.rb
dev-2.0.292 lib/apps/wix.rb
dev-2.0.291 lib/apps/wix.rb
dev-2.0.290 lib/apps/wix.rb
dev-2.0.289 lib/apps/wix.rb
dev-2.0.288 lib/apps/wix.rb
dev-2.0.287 lib/apps/wix.rb
dev-2.0.286 lib/apps/wix.rb
dev-2.0.285 lib/apps/wix.rb
dev-2.0.284 lib/apps/wix.rb
dev-2.0.283 lib/apps/wix.rb
dev-2.0.282 lib/apps/wix.rb
dev-2.0.281 lib/apps/wix.rb
dev-2.0.280 lib/apps/wix.rb
dev-2.0.279 lib/apps/wix.rb
dev-2.0.278 lib/apps/wix.rb