Module: Parser

Defined in:
lib/fir/patches/parser_patch.rb

Defined Under Namespace

Classes: App, IPA

Class Method Summary collapse

Class Method Details

.crush_icon(uncrushed_icon_path, crushed_icon_path) ⇒ Object



15
16
17
# File 'lib/fir/patches/parser_patch.rb', line 15

def crush_icon uncrushed_icon_path, crushed_icon_path
  system("#{png_bin} -iphone #{uncrushed_icon_path} #{crushed_icon_path} &> /dev/null")
end

.png_binObject



7
8
9
# File 'lib/fir/patches/parser_patch.rb', line 7

def png_bin
  @png_bin ||= File.expand_path("../bin/pngcrush", __FILE__)
end

.uncrush_icon(crushed_icon_path, uncrushed_icon_path) ⇒ Object



11
12
13
# File 'lib/fir/patches/parser_patch.rb', line 11

def uncrush_icon crushed_icon_path, uncrushed_icon_path
  system("#{png_bin} -revert-iphone-optimizations #{crushed_icon_path} #{uncrushed_icon_path} &> /dev/null")
end