Expand description
The archives packages are shipped in: a zip (Windows, the web) and a
tar.gz (Linux). Both are written the same for the same files: every
entry at one fixed time (1980-01-01), in the order given, so an export
made twice gives the same bytes.
Structs§
- Entry
- A file to put in an archive.
Functions§
- entries
- Every file under
dir, named fromprefix(""for the archive’s root,"game-1.0-linux/"for a folder), sorted by name;executablesays which are programs. - read
- The files of the archive at
path, a zip or atar.gzas these functions write them: each name and its bytes, in order. An archive that unpacks to more thanlimitbytes is an error, as is one that doesn’t read. - tar_gz
- Writes
entriesinto a gzip-compressed ustar archive atout. - zip
- Writes
entriesinto a zip atout, each deflated, with UTF-8 names. - zip_
names - The names of the entries of the zip
bytes, in order, from its central directory.