mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-29 20:27:05 -06:00
With `zip: true`, document.exportForScreens deflated nothing: every file went into the archive stored. Each file is now deflated, or stored when deflating does not make it smaller, as file.package's archive does. The file list, the names and the reply's fields stay the same; `bytes` and the archive's contents change. Entries keep the fixed 1980-01-01 date, so the same files still give the same archive. The deflating writer moves from package.rs into fileio/zip.rs as `zip::deflate`, beside `zip::store`, and file.package calls it there with its own date and error text. The test reader `zip::entries` reads deflated entries too. The `zip` option's text in docs/mcp.md, docs/control-protocol.md and the command's params says the files are deflated.