evazion
|
0c1e9a1618
|
Add Danbooru::Archive library for handling .zip and .rar files.
Introduce a new Danbooru::Archive library. This is a wrapper around libarchive that lets us extract
.zip, .rar, .7z, and other archive formats. Replace the rubyzip library in MediaFile::Ugoira with
the new Danbooru::Archive library.
This is a step towards fixing #5340: Add support for extracting archive attachments from certain sources.
This adds a new dependency on libarchive. Downstream users should `apt-get install libarchive13` if
they're not using Docker.
https://github.com/chef/ffi-libarchive
https://github.com/libarchive/libarchive
https://www.rubydoc.info/gems/ffi-libarchive/0.4.2
https://github.com/libarchive/libarchive/wiki/Examples#a-complete-extractor
|
2022-11-14 20:14:37 -06:00 |
|