Class: Wix

Inherits:
Object
  • Object
show all
Defined in:
lib/apps/wix.rb

Class Method Summary collapse

Class Method Details

.get_build_commands(wxs_file) ⇒ Object



7
8
9
10
11
12
13
14
15
16
17
18
19
20
# File 'lib/apps/wix.rb', line 7

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(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
  build_commands
end