rikyoz / bit7z

A C++ static library offering a clean and simple interface to the 7-zip shared libraries.
https://rikyoz.github.io/bit7z
Mozilla Public License 2.0
633 stars 116 forks source link

[Feature Request]: Support for compressed packages in four formats: ace, img, uue, and war #189

Open psvajaz opened 8 months ago

psvajaz commented 8 months ago

Feature description

  1. In the 7z source code, you can see that it supports preview and decompression in ACE, IMG, and war formats. How do you configure the corresponding parser?
  2. Can we support the preview and decompression function of uue's compressed packages

Additional context

No response

Code of Conduct

psvajaz commented 8 months ago

I just confirmed that war is a Java encapsulation format for the web, and the actual file format is zip

rikyoz commented 8 months ago

Hi!

I just confirmed that war is a Java encapsulation format for the web, and the actual file format is zip

yeah, in the case of .war files, it should suffice to use BitFormat::Zip.

In the 7z source code, you can see that it supports preview and decompression in ACE, IMG

Sorry, I can't find where the 7-Zip source code adds support to the ACE format.

As for .img files, 7-Zip supports many archive formats that sometimes use this same extension, like BitFormat::Iso, BitFormat::Ntfs, BitFormat::Ext, and so on. The format you should use depends on the kind of .img files you need to handle.

Can we support the preview and decompression function of uue's compressed packages

As far as I know, 7-Zip doesn't support the UUE format. If this is the case, adding support for such a format is outside the scope of this library, as bit7z supports only the formats implemented by the 7-Zip DLLs, nothing more.