TAR: added zstd, lzma (xz) and bzip3 support#5
Conversation
| } | ||
| BZStream->next_in = (char *)DataStart; | ||
| BZStream->avail_in = (unsigned int)(DataEnd - DataStart); | ||
| BZStream->avail_in = GetUnreadInputBufferSize(); |
There was a problem hiding this comment.
there was some issue with computing available buffer size, but now I don't remember the details...
| // Open the fist subarchive | ||
| controlArchive = new CArchive(fileName, salamander, pos, CQuadWord(SubArchiveSize, 0)); | ||
| if (!controlArchive->IsOk()) | ||
| CArchive *archive = new CArchive(fileName, salamander, pos, CQuadWord(SubArchiveSize, 0)); |
There was a problem hiding this comment.
the expected sub-archives can be in reverse order, data first and control last, this is a fix for such case
| @@ -158,7 +158,7 @@ CPluginInterfaceAbstract* WINAPI SalamanderPluginEntry(CSalamanderPluginEntryAbs | |||
| VERSINFO_VERSION_NO_PLATFORM, | |||
| VERSINFO_COPYRIGHT, | |||
| LoadStr(IDS_PLUGIN_DESCRIPTION), | |||
| "TAR" /* neprekladat! */, "tar;tgz;taz;tbz;gz;bz;bz2;z;rpm;cpio;deb"); | |||
| "TAR" /* neprekladat! */, "tar;tgz;taz;tbz;gz;bz;bz2;xz;zst;z;rpm;cpio;deb;ipk"); | |||
There was a problem hiding this comment.
.ipk file format should be equal to .deb ones, isn't it?
| "%s " VERSINFO_VERSION "\n" | ||
| VERSINFO_COPYRIGHT "\n\n" | ||
| "bzip2 library Copyright © 1996-2010 Julian R Seward\n" | ||
| "Zstandard library Copyright © 2016-2023 Facebook, Inc.\n\n" |
There was a problem hiding this comment.
copyright notice, as license of zstd requires
| "*.rpm;*.cpio;*.deb", | ||
| ConfigVersion < 5); // pri upgradech se ignoruje, az na pripad, kdy se upgraduje na verzi 4 - nutny update kvuli "*.z" a dalsim | ||
| salamander->AddPanelArchiver("tgz;tbz;taz;tar;gz;bz;bz2;z;rpm;cpio;deb", FALSE, FALSE); // pri upgradech pluginu se ignoruje | ||
| salamander->AddCustomUnpacker("TAR-z (Plugin)", "*.z;*.tz;*taz;*.tar.z;*_tar.z;*_tar_z;*.tar_z", upgrade); |
There was a problem hiding this comment.
string with all file extensions was too long, I would rather split it
|
Wow, support for XZ compressed Debian packages has been high on my wish list. Thanks for this! 👍 |
|
Is this the update from here? :) https://forum.altap.cz/viewtopic.php?p=71603 |
yes, it's exactly this one |
|
When compiling x64 targets, I receive the following warning: |
|
Shouldn't we have one common |
forgot to check also x64 compilation log, fixed, |
this is a question if this is possible, the so far I didn't find anything useful in the documentation how to do that, but at least I'd add this to the # vcpkg
vcpkg_installed/ |
|
I added support also for bzip3 archives ( here are plugin binaries for salamander 4: enjoy 🙂 |
|
awesome work @lejcik ! |
Added support for opening
.zstdand.xzfiles with TAR plugin.