The minimalist Windows package manager baulk 2.0 is released, adding native tar/zip extraction function

baulk  is minimalist green package manager on a Windows system, now 2.0 has been released, two new sub-command experimental  untar, unzip.

among them:

untar is used to extract tar and tar.xz/tar.gz/tar.bz2/tar.zst/ tar.br  and other format files.

unzip is used to decompress zip files, and baulk::archive::zip is used.

  • baulk::archive::zip supports decompression. The compression method is more comprehensive. It supports deflate/deflate64/zstd/bzip2/lzma/ppmd. For example, the official 7z does not support zstd, and minizip/libzip does not support deflate64/ppmd. libarchive does not support deflate64/zstd.
  • In addition, baulk::archive::zip also uses Google’s open source project  Compact Encoding Detection  to implement file name encoding detection in zip. That is to say, some traditional compression software does not show that UTF-8 is used when compressing zip. With encodings such as ASCII/GBK, file names will appear garbled when the code page is different. In baulk::archive::zip, we will detect the encoding and then convert the encoding correctly to reduce this problem.
  • baulk::archive::zip uses the optimized version of chromium's zlib, takes full advantage of SIMD, and decompresses quickly.
  • baulk::archive::zip uses strict path checking to avoid path escape.

In the process of implementing baulk::archive::zip, I found that libdeflate is faster than most optimized versions of zlib, but there is currently no port to support Windows ARM64, so I have not integrated it into the decompression of small zip files Optimizing.

 

Guess you like

Origin www.oschina.net/news/127981/baulk-2-0-released