pdfcraft/xtask/src
Brandon Thomas d90b3f897f
Refs #103: ship the OCR models in the desktop release packages (#630)
Release builds said "Text recognition isn't installed: its models are
missing" because no packaging script or release job fetched the OCR
models: only `cargo xtask models` does, into the source tree.

- packaging/env.sh gains stage_models DEST, which runs
  `cargo xtask models DEST` (every ATTRIBUTION.toml kind = "model" file,
  SHA-256 verified, with its licence text). No model file is named, so
  the models PRs #433/#572 add ship without packaging changes.
- `cargo xtask models` also writes ATTRIBUTION.txt crediting each model
  (CC-BY-SA-4.0 requires attribution when redistributed).
- macOS: PdfCraft.app/Contents/Resources/models, before signing.
- Windows: models\ beside pdfcraft.exe in the MSI (WiX v5 <Files>
  harvest) and the portable zip; test-msi.ps1 checks the folder.
- Linux deb/rpm/tar.gz/AppImage, Flatpak bundle and FreeBSD tarball:
  share/pdfcraft/models beside bin/. Models::search_dirs now also looks
  in <exe dir>/../share/pdfcraft/models (Models::dirs_beside_exe); a
  test builds every package layout on disk and finds the models in each.
  release.yml and freebsd.yml check the packages contain them.
- The missing-models messages no longer tell end users to run cargo,
  and the 11 catalogs that keyed an old PRINTCRAFT_MODELS wording (or
  the previous one) now key the current English text; ATTRIBUTION
  hashes updated. A test checks the translations match.

The web (wasm) build, which the issue reports, still has no models; this
is the desktop half only.

Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-09 18:42:23 -04:00
..
demo_pdf Refs #347: encode the full WinAnsi 0x80-0x9F range (Š š Ž ž Œ œ Ÿ ...) (#546) 2026-10-09 10:45:28 -04:00
assets.rs Refs #103: ship the OCR models in the desktop release packages (#630) 2026-10-09 18:42:23 -04:00
fuzz.rs Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
gates.rs #211: guard the macOS PDF file association with a packaging test (#226) 2026-10-08 03:18:35 -04:00
layers.rs Add image signatures with placement preview and resize controls (#335) 2026-10-08 16:36:26 -04:00
main.rs Rename PrintCraft to PdfCraft (#174) 2026-10-07 16:03:57 -04:00
parity.rs M0.8: parity/acrobat-features.toml (826 features) + xtask parity (schema, registry/tool/test cross-checks, tier/area report) in ci; fuzzer skips known-hang seeds 2026-10-01 09:34:02 -04:00
screenshots.rs M14: Arabic and Hebrew file names render in the tab strip, recent files and Properties (#285) 2026-10-08 10:46:58 -04:00
version.rs xtask: version test uses gates::root (fixes the xtask test build) 2026-10-03 00:42:57 -04:00