Method: CBin::Build::Helper#zip_static_library

Defined in:
lib/cocoapods-lhj-bin/helpers/build_helper.rb

#zip_static_libraryObject


89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/cocoapods-lhj-bin/helpers/build_helper.rb', line 89

def zip_static_library
  Dir.chdir(zip_dir) do
    output_library = "#{library_name}.zip"
    unless File.exist?(library_name)
      raise Informative, "没有需要压缩的 library 文件:#{library_name}"
    end

    UI.puts "Compressing #{library_name} into #{output_library}"

    `zip --symlinks -r #{output_library} #{library_name}`
  end

end