Sha256: 48609999831e92055e888202a2fb050ef2af2dce6cf56a1ad8e3d460995792b7

Contents?: true

Size: 1.28 KB

Versions: 13

Compression:

Stored size: 1.28 KB

Contents

puts __FILE__ if defined?(DEBUG)

#
# 
#
class Wix
	def self.get_build_commands wxs_file
      build_commands=nil
      if(File.exists?(wxs_file))
      	build_commands=Array.new if build_commands.nil?
      	build_commands << "candle #{wxs_file} -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"

      	#if(IO.read(wxs_file).include?('<Product'))
      		if(defined?(VERSION))
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -out #{File.basename(wxs_file,'.*')}-#{VERSION}.msi -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    else
      		  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	    end
      	#end
      	#elsif(IO.read(wxs_file).include?('<Bundle'))
      	#	if(defined?(VERSION))
      	#	  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -out #{File.basename(wxs_file,'.*')}-#{VERSION}.exe -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	#    else
      	#	  build_commands << "light #{File.basename(wxs_file,'.*')}.wixobj -ext WixNetFxExtension -ext WixBalExtension -ext WixUtilExtension"
      	#    end
      	#end
      end
      build_commands
    end
end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
dev-2.0.194 lib/apps/wix.rb
dev-2.0.193 lib/apps/wix.rb
dev-2.0.192 lib/apps/wix.rb
dev-2.0.191 lib/apps/wix.rb
dev-2.0.190 lib/apps/wix.rb
dev-2.0.189 lib/apps/wix.rb
dev-2.0.188 lib/apps/wix.rb
dev-2.0.187 lib/apps/wix.rb
dev-2.0.186 lib/apps/wix.rb
dev-2.0.185 lib/apps/wix.rb
dev-2.0.184 lib/apps/wix.rb
dev-2.0.183 lib/apps/wix.rb
dev-2.0.182 lib/apps/wix.rb