vectorcraft/packaging
Ahmed Moussa 3e20c2cf29
build(web): copy web fonts with cargo xtask, not sh
Replace the Trunk post_build hook packaging/web/copy-fonts.sh with `cargo xtask web-fonts` (xtask/src/web_fonts.rs), so the web build only needs trunk, the wasm32 target and cargo, with no POSIX shell, and works the same on Windows.

The new task reuses crates/text/build/web_fonts.rs for list parsing and URLs, so build.rs and the copier can't disagree on fonts/<sha16>/<file>. It still does nothing without CRAFT_FONTS_DIR, checks each file's SHA-256 against the manifest, and copies the licence next to each face. A listed face that an older craft-fonts checkout lacks is now skipped with a warning, as build.rs does, instead of failing the build. A relative CRAFT_FONTS_DIR is resolved from the workspace root.

Update the references in Trunk.toml, fonts.rs, build.rs, craft_fonts.rs and web-fonts.txt, and document the web build's requirements in docs/development.md. Add tests for the copy, a hash mismatch and the no-op case.

Signed-off-by: Ahmed Moussa <moussa.ahmed95@gmail.com>
2026-10-09 17:18:54 +03:00
..
freebsd FreeBSD: release package and a packaging check in CI 2026-10-05 09:25:46 -04:00
linux Release: Flatpak bundles, AppImage zsync updates, README Downloads (#500) 2026-10-08 10:00:34 -04:00
macos AF.3: native Affinity import with artboards, vectors, text and images 2026-10-08 17:58:11 +00:00
web build(web): copy web fonts with cargo xtask, not sh 2026-10-09 17:18:54 +03:00
windows M14: Windows 7 build: patch windows-link for that build only, manual CI 2026-10-08 05:37:06 +07:00
.shellcheckrc Signed release pipeline (macOS/Windows/Linux/Web); README community note 2026-10-02 11:35:29 -04:00
env.sh Fonts: use craft-fonts as an optional build input; move the Japanese fonts out 2026-10-06 10:42:21 -04:00
icons.sh app icon: regal engraved dragon (owner's ArtCraft drawing), Dock/taskbar/launcher wiring, palette docs 2026-10-02 09:45:30 -04:00