Skip to main content

Module unpack

Module unpack 

Source
Expand description

Unpacking the Windows portable release’s .7z in srv itself (docs/specs/SPEC_UPDATE_UNPACK_7Z_IN_RUST_2026_10_19.md).

The release is packed LZMA2 with the BCJ2 filter (scripts/package-portable.sh runs 7z a -t7z -m0=lzma2 -mx=9, and 7-Zip adds BCJ2 for executables). Windows 10’s own tar.exe is libarchive built without liblzma, so it can’t read one (“LZMA codec is unsupported”); sevenz-rust2 decodes it here, on any Windows. Every entry is written under the destination or refused: an absolute path, a drive or root, or a .. never reaches the disk.