CBR and folder formats

This commit is contained in:
Agel committed 2026-05-23 00:15:35 +02:00
1 parent e043ded6b1
commit bfc50a67b8
40 files changed
+1028 -349

No files matched your search

+8 -2
View File
@@ -10,7 +10,7 @@ Asteria Qt is a cross-platform desktop book/document reader built with Qt6/C++.
### Format Support
Initial implementation: **TXT, FB2, EPUB, CBZ**
Initial implementation: **TXT, FB2, EPUB, CBZ, CBR, Folder of images**
Full target format list (derived from actual library inventory):
@@ -86,6 +86,7 @@ System packages installed by the script:
| `libuchardet-dev` | Encoding detection (TXT reader) |
| `zlib1g-dev` | zlib headers (required by minizip) |
| `libminizip-dev` | ZIP/EPUB extraction |
| `libarchive-dev` | RAR extraction (CBR) |
| `libdjvulibre-dev` | DjVu format |
| `libwpd-dev` | Legacy .doc format |
| `python3-venv` | For aqtinstall |
@@ -105,7 +106,12 @@ cmake --build build --parallel
ctest --test-dir build --output-on-failure
```
Homebrew packages installed by the script: `cmake`, `ninja`, `pkg-config`, `uchardet`, `minizip`. Qt 6.10.3 is installed via `aqtinstall` to `/opt/qt/6.10.3/macos` (universal binary, runs on both Apple Silicon and Intel).
Homebrew packages installed by the script: `cmake`, `ninja`, `pkg-config`, `uchardet`, `minizip`, `libarchive`. Qt 6.10.3 is installed via `aqtinstall` to `/opt/qt/6.10.3/macos` (universal binary, runs on both Apple Silicon and Intel).
**Note:** `libarchive` is keg-only on Homebrew and not automatically on the pkg-config search path. Before running cmake, set:
```bash
export PKG_CONFIG_PATH="$(brew --prefix libarchive)/lib/pkgconfig:$PKG_CONFIG_PATH"
```
macOS builds use Metal for rendering (already handled in `main.cpp` via `Q_OS_MACOS`). macOS cannot be cross-compiled from Linux; CI must run on a native macOS host.