Class: XPCOMCore::Building::StubAppHelpers::AppUpdater
- Inherits:
-
Object
- Object
- XPCOMCore::Building::StubAppHelpers::AppUpdater
- 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
-
#initialize(options) ⇒ AppUpdater
constructor
A new instance of AppUpdater.
- #update ⇒ Object
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() @xul_app_path = [:xul_app_path] @stub_dir = [:stub_dir] end |
Instance Method Details
#update ⇒ Object
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 |