Class: XPCOMCore::Building::StubAppHelpers::AppUpdater

Inherits:
Object
  • Object
show all
Defined in:
lib/xpcomcore-rubygem/building/stub_app_helpers.rb

Constant Summary collapse

IconPath =
"chrome/icons/default/default.png"
IconConverter =
"png2icns"

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ AppUpdater

Returns a new instance of AppUpdater.



11
12
13
14
# File 'lib/xpcomcore-rubygem/building/stub_app_helpers.rb', line 11

def initialize(options)
  @xul_app_path = options[:xul_app_path]
  @stub_dir = options[:stub_dir]
end

Instance Method Details

#updateObject



16
17
18
19
20
21
22
# File 'lib/xpcomcore-rubygem/building/stub_app_helpers.rb', line 16

def update
  app_ini = IniParse.parse((@xul_app_path + "application.ini").read)
  app_section = app_ini['App']
  check_for_and_set_app_dir(app_section['Name'])
  rewrite_plist(:name => app_section['Name'], :version => app_section['Version'], :id => app_section['ID'], :vendor => app_section['Vendor'])
  generate_icon(:name => app_section['Name'])
end