2 Commits

Author SHA1 Message Date
Alexey Olendor 34a19f8f73 fix downloader 2025-12-27 12:00:49 +03:00
Alexey Olendor 19edc9df14 feat: add packed archive support with brotli compression, add configuration and more
Add support for serving assets from packed binary archives with brotli compression.

New features:
- `packer_brotli.py`: Pack vcsky/vcbr folders into single .bin archive with brotli compression (quality 11)
- `downloader_brotli.py`: Stream unpack archives during download
- `--packed` flag: Serve files directly from archive (supports local files and URLs)
- `--unpacked` flag: Extract archive to `unpacked/{hash}/` and serve from there
- `--vcsky_local` / `--vcbr_local`: Now accept optional custom paths
- MD5 hash detection: Pass existing folder hash directly to `--unpacked`
- `--pack` for packing

Archive format:
- ULEB128 length encoding for compact size
- Folder/file deduplication (identical content stored once)
- Parallel compression with ProcessPoolExecutor

and much more, like ?configurable=1

and auto language detection fix, ...
2025-12-27 10:41:45 +03:00