packaging/web/package.sh is the app side of the family release workflow's web
job (#210) and runs in the Web CI job; releases keep has-web off until hosting
is decided.
Since 0.1 the importer reads bitmaps, sounds and the publish settings from the
package with `?`, so one entry failing its checksum or the archive's limits
refused the whole document (#226). Optional parts are now left out and
reported; damage to DOMDocument.xml still refuses the file. Animate omits the
default white backgroundColor, which imported as black (#163). anicraft-cli
info/render/exports open .fla/.xfl through file.open.
Tests: damaged bitmap/symbol parts (fail before the fix), white stage,
every entry point (file.open, upper-case .FLA, Open Recent, drop routing,
browser vfs) over the corpus, CLI subcommands.
src/web.rs starts the editor on a page canvas with eframe's WebRunner (WebGL2 via glow) and
provides the browser's services; platform.rs decides when: picked files go to the engine's
in-memory store and the command runs, saves and exports leave as downloads, preferences and
recovery copies live in localStorage, Web Locks tell open tabs from crashed ones, and leaving
with unsaved work asks first. The GPU stage and sound output become build cfgs that are off
on wasm. Video export and plug-in installs are dimmed in the browser with the reason.
scripts/build-web.sh and .ps1 build web/ with the wasm-bindgen CLI pinned to Cargo.lock's
version, from packaging/web/index.html. The web profile (opt-level s, stripped, renderer and
geometry at opt-level 3) gives an 8973 KB module, 3278 KB gzipped, in 41 s.
crates/engine/tests/wasm.rs runs the engine inside WebAssembly in Node (3 tests, 0.6 s).
Desktop entry, AppStream metainfo, MIME types for .anicraft/.fla/.xfl and hicolor icons in
every format; riscv64 cross builds; Flatpak bundle and from-source manifests with display,
GPU, sound and document folders only.
Info.plist declares the .anicraft document type (owner) and FLA/XFL (alternate viewer);
hardened runtime, Developer ID signing and notarization when the secrets are set, ad-hoc
otherwise. The DMG window background and layout are generated reproducibly by
packaging/macos/dmg/generate.py; the .icns is built at package time.
WiX v5 installer in the Craft family's install policy: per-user by default, everyone on
request, upgrades in place. Registers .anicraft (default app) and offers Open with for
.fla/.xfl; Start menu, App Paths, Launch on Finish. sign.ps1 signs with a PFX or Azure
Trusted Signing and warns without secrets.