mirror of
https://github.com/storytold/AniCraft.git
synced 2026-11-30 18:14:14 +01:00
docs: installers, signing and publishing; ADR 0026 (M8)
This commit is contained in:
1 parent
94ac5cf2a0
commit
3e5df30ac5
6 files changed
+203
-5
No files matched your search
@@ -23,6 +23,7 @@ shaders or SDK code).
|
||||
| `crates/svg/fixtures/clips-masks-text.svg` | SVG import test drawing (clip paths, a mask, text) | AniCraft contributors | Original work | MIT OR Apache-2.0 |
|
||||
| `assets/icons/*.svg` except `anicraft-*` (33 files: tools, transport, layer toggles, folders, guide, image, text, sound, chevrons) | UI icons, stroked by `src/icons.rs` | Lucide Icons and Contributors (some derived from Feather by Cole Bemis) | <https://github.com/lucide-icons/lucide> (`icons/<name>.svg`), copied unchanged from the PhotoCraft sibling project's set (`volume-2.svg` from Lucide 0.512.0) | ISC (Lucide) and MIT (Feather), [`licenses/icons/LICENSE-lucide.txt`](licenses/icons/LICENSE-lucide.txt) |
|
||||
| `assets/app-icon/` (`anicraft.svg`, `anicraft-small.svg` and every render: PNGs, `anicraft.ico`, `hicolor/`) | App icon (engraved rabbit): window, Dock, taskbar, `anicraft.exe`, Help › About | Project owner (ArtCraft team) | Original artwork drawn in ArtCraft for AniCraft, vectorised by `assets/app-icon/trace.py` and rendered by `scripts/icons.sh` | MIT OR Apache-2.0 ([`assets/app-icon/LICENSE.txt`](assets/app-icon/LICENSE.txt)) |
|
||||
| `packaging/macos/dmg/` (`background.tiff`, `dmg-layout.DS_Store`) | macOS DMG window background and Finder layout | AniCraft contributors | Original work drawn by `packaging/macos/dmg/generate.py` in the app icon's colours; layout approach as in the PhotoCraft sibling project | MIT OR Apache-2.0 |
|
||||
| `docs/images/` (screenshots and `sample-animation.gif`) | README | AniCraft contributors | Original work: AniCraft's own screenshots (`--screenshot`) and sample animation (`anicraft-cli gif`) | MIT OR Apache-2.0 |
|
||||
| Library symbol-kind marks, selection handles, timeline marks | UI | AniCraft contributors | Original work, drawn in code (`src/panels.rs`, `src/timeline.rs`, `src/stage.rs`) | MIT OR Apache-2.0 |
|
||||
| Sample animation (ball, star, sun, hills, sky) | First launch, tests, CLI `--sample` | AniCraft contributors | Original work, generated in code (`crates/doc/src/sample.rs`) | MIT OR Apache-2.0 |
|
||||
|
||||
@@ -2,6 +2,19 @@
|
||||
|
||||
## Unreleased
|
||||
|
||||
* **Installers for Windows, macOS and Linux** (ADR 0026, `docs/release.md`). A push to the
|
||||
`release` branch now builds installable AniCraft for every platform and drafts a GitHub
|
||||
Release: a Windows **MSI** (x64 and arm64) that installs for your account without an admin
|
||||
prompt, or for everyone if you choose, with a Start menu entry; a macOS **DMG** with the
|
||||
universal app (drag to Applications); a Linux **AppImage**, **deb**, **rpm**, **Flatpak** and
|
||||
tarball. Everywhere, `.anicraft` documents get AniCraft's icon and open in AniCraft, and FLA
|
||||
and XFL files list AniCraft under "Open with" without changing your default app.
|
||||
`anicraft-cli` is installed next to the app. Windows and macOS builds are signed (macOS also
|
||||
notarized) and the Linux packages and checksums are signed when the release secrets are set.
|
||||
`anicraft --version` and `anicraft-cli --version` print the version. On Linux the window now
|
||||
reports the app id `ai.storyteller.anicraft`, so docks show AniCraft's icon. Not yet: on macOS,
|
||||
double-clicking a document starts AniCraft but doesn't open the file.
|
||||
|
||||
* **Bevel, Gradient Glow and Gradient Bevel filters** (ADR 0025). Properties › Filters ›
|
||||
Add filter now offers all seven of Animate's filters on movie clip and button instances.
|
||||
**Bevel** lights the edges that face the light and shades the others (shadow and highlight
|
||||
|
||||
@@ -0,0 +1,115 @@
|
||||
# ADR 0026: Packaging layout and signing policy
|
||||
|
||||
* Status: accepted (2026-11-09)
|
||||
* Relates to: roadmap M8 (installers and signing), ADR 0004 (destructive actions), ADR 0006
|
||||
(cross-platform), ADR 0009 (XFL import), ADR 0015 (crash recovery), ADR 0017 (plug-ins)
|
||||
|
||||
## Context
|
||||
|
||||
AniCraft had a release workflow that calls the Craft family's shared one
|
||||
(`storytold/craft-common-actions/.github/workflows/release.yml`) and a Packaging lint workflow,
|
||||
but no `packaging/` folder, so neither could do anything and Packaging lint failed on every pull
|
||||
request that touched a workflow. The shared release workflow is a contract: it runs
|
||||
`packaging/windows/package.ps1`, `packaging/macos/{import-cert,package,verify}.sh` and
|
||||
`packaging/linux/{package,flatpak-bundle,flatpak-oci}.sh` with fixed arguments and collects
|
||||
`dist/release/*`; it finds the app's build variables (`ANICRAFT_VERSION`, `_BUILD_DATE`,
|
||||
`_BUILD_SHA`) through `packaging/env.sh`. The sibling apps (PhotoCraft, FilmCraft, VectorCraft,
|
||||
SoundCraft, …) share one layout and one installer policy. Artists coming from Animate expect a
|
||||
normal installer per OS, an app that opens when they double-click a document, and no admin
|
||||
prompt they didn't ask for.
|
||||
|
||||
## Decision
|
||||
|
||||
1. **The family layout, not our own.** `packaging/` follows the sibling apps file for file, so
|
||||
the shared workflows, the shared lint and anyone who knows one Craft app work unchanged:
|
||||
`env.sh` (version from `[workspace.package]`, `ANICRAFT_*` build variables, `APP_ID`),
|
||||
`check-icons.sh`, `windows/`, `macos/`, `linux/` (with `flatpak/`). The family-generic files
|
||||
(`check-install-policy.ps1`, `test-install-policy.ps1`, `verified-download.sh`,
|
||||
`postinst.sh`, the macOS signing helpers) are first-party copies from the same organisation,
|
||||
adapted only in names. FreeBSD uses the shared workflow's built-in fallback (no
|
||||
`packaging/freebsd/`), and there is no web package yet (`has-web: false`).
|
||||
2. **One app id: `ai.storyteller.anicraft`.** It names the desktop entry, AppStream component,
|
||||
MIME package, hicolor icons (already in `assets/app-icon/`), the Flatpak and the macOS bundle,
|
||||
and is now also the window's Wayland app_id / X11 class (`platform::APP_ID`, was `anicraft`),
|
||||
so docks match the running window to the installed launcher and its icon.
|
||||
`src/packaging_tests.rs` fails `cargo test` if any of them drifts.
|
||||
3. **What each OS gets.**
|
||||
* **Windows:** a WiX v5 MSI (x64 and arm64) with the family install policy: per-user into
|
||||
`%LOCALAPPDATA%\Programs\ArtCraft\AniCraft` by default with no admin prompt, "everyone"
|
||||
(Program Files, elevated) as an explicit choice on the first page, upgrades in place,
|
||||
cross-scope duplicates refused (`install-policy.wxi`, checked on the compiled MSI by
|
||||
`check-install-policy.ps1`, and on fixture builds in Packaging lint). Start menu shortcut,
|
||||
App Paths (Win+R `anicraft`), Finish-page "Launch AniCraft". Plus a portable zip and an
|
||||
optional symbols zip (PDBs). The UpgradeCode `95D4D208-…` and the app component GUID never
|
||||
change.
|
||||
* **macOS:** a universal `AniCraft.app` (Info.plist with the document types, hardened runtime,
|
||||
empty entitlements) on a drag-to-Applications DMG with a laid-out Finder window, and a CLI
|
||||
zip. The `.icns` is built at package time from the committed padded tile with the system's
|
||||
`sips` and `iconutil`, so no generated binary is committed for it.
|
||||
* **Linux:** AppImage (x86_64, aarch64), deb and rpm (x86_64, aarch64, riscv64), a tar.gz,
|
||||
then (in the shared workflow, from that tarball) Flatpak and Arch packages. Every format
|
||||
installs the desktop entry, AppStream metainfo, hicolor icons and MIME types. The Flatpak
|
||||
asks for display, GPU, sound (`pulseaudio`) and the Documents, Pictures and Videos folders;
|
||||
not network, not home.
|
||||
4. **Documents.** `.anicraft` (`application/x-anicraft`, a JSON sub-class on Linux, UTI
|
||||
`ai.storyteller.anicraft.document`) is AniCraft's own: AniCraft is its default app on every OS.
|
||||
`.fla` and `.xfl` are offered as an alternative only ("Open with"; macOS role Viewer, rank
|
||||
Alternate), never taken over: they open as an untitled import (ADR 0009), so Save never
|
||||
writes them back. Their type names are neutral ("FLA document"), never Adobe's marks. The
|
||||
list is the Open dialog's own (`platform::filters("file.open")`), and the packaging test
|
||||
checks every entry is registered on all three systems.
|
||||
5. **Signing policy.** Releases are built only by CI, from the `release` branch, with secrets in
|
||||
the repository's `release` environment: Windows Authenticode (a PFX or Azure Trusted Signing,
|
||||
`sign.ps1`), macOS Developer ID with hardened runtime, notarization and stapling
|
||||
(`package.sh`, then `verify.sh`), and the OpenPGP `LINUX_SIGNING_KEY` for the Linux packages,
|
||||
the Flatpak and `SHA256SUMS.txt`. **On `release`, a missing Windows or macOS secret fails the
|
||||
run** (the shared workflow's guard), so an unsigned build can't be published by accident.
|
||||
**Anywhere else** (a manual run, a fork, a local build) the scripts warn and produce unsigned
|
||||
or ad-hoc-signed artifacts, so the packaging can always be tried. No secret is ever read by a
|
||||
script that doesn't use it or printed.
|
||||
6. **Nothing is published by CI.** The release workflow ends in a *draft* GitHub Release with
|
||||
every artifact and `SHA256SUMS.txt`; a maintainer publishes it, which creates the `v<version>`
|
||||
tag (`docs/release.md`).
|
||||
7. **Release builds fail rather than degrade** where we can check: `ANICRAFT_REQUIRE_WINRES=1`
|
||||
(set by `package.ps1`) makes a missing icon/version resource in `anicraft.exe` a build error;
|
||||
`package.ps1` checks each exe's PE machine and subsystem (GUI app, console CLI); every package
|
||||
script ends with `anicraft-cli --version` (new, with `anicraft --version`).
|
||||
|
||||
## Consequences
|
||||
|
||||
* A push to `release` produces installable, signed artifacts for every platform once the
|
||||
secrets are set; Packaging lint (actionlint, shellcheck, PowerShell parse, XML, desktop-file,
|
||||
AppStream and Flatpak checks, plus the Windows install-policy fixture build) guards every PR
|
||||
that touches packaging or workflows.
|
||||
* The window's app id changed from `anicraft` to `ai.storyteller.anicraft`. Nothing persisted
|
||||
depends on it (eframe persistence is off; settings live in `platform::config_dir()`); window
|
||||
rules a user wrote for the old class need the new one.
|
||||
* Uninstalling removes program files and registrations only. Preferences, plug-ins and
|
||||
crash-recovery copies are the user's (ADR 0004, ADR 0015) and stay.
|
||||
|
||||
## Not in this slice
|
||||
|
||||
* **macOS: opening a document from Finder.** The document types are declared (icons, "Open
|
||||
With"), but macOS hands the file to a running app as an Apple Event, not on the command line,
|
||||
and winit 0.30 doesn't deliver it; double-clicking a `.anicraft` starts AniCraft without
|
||||
opening the file. Needs an open-documents hook in the shell without `unsafe`.
|
||||
* A version override for manual release runs (the family's `cargo xtask version set`): AniCraft
|
||||
has no `xtask` yet, so the dispatch input was removed; a manual run builds the `Cargo.toml`
|
||||
version.
|
||||
* AppImage desktop integration on first run (the siblings' `AppRun` script), Windows portable
|
||||
mode (settings next to the exe), MSIX/winget/Homebrew/Flathub submission, CLI man pages and
|
||||
shell completions, a WebAssembly build.
|
||||
* Video export inside the Flatpak: the sandbox can't run the host's ffmpeg (the runtime's
|
||||
ffmpeg extension is a follow-up).
|
||||
|
||||
## Alternatives considered
|
||||
|
||||
* **Our own layout or tools (cargo-dist, cargo-bundle, cargo-wix).** Rejected: the shared
|
||||
workflow and lint are the family's contract and already handle signing, notarization, Linux
|
||||
repository signing, Flatpak OCI and Arch; a second toolchain would diverge from every sibling.
|
||||
* **Per-machine MSI by default** (Program Files, admin prompt). Rejected for the family policy:
|
||||
artists on managed or shared machines often can't elevate; "everyone" stays one click away.
|
||||
* **Taking over `.fla`/`.xfl` as the default app.** Rejected: users with Animate installed must
|
||||
keep their default, and AniCraft imports these files rather than editing them in place.
|
||||
* **Committing an `.icns`.** Rejected: it can only be made reliably on a Mac and would be one
|
||||
more generated binary; the macOS runner has `sips` and `iconutil`.
|
||||
@@ -59,6 +59,27 @@ Apache-2.0), and in the desktop app `cpal` (sound output, Apache-2.0) with its p
|
||||
bindings on macOS). No new licence. `symphonia`, the usual Rust decoder, is MPL-2.0 and was not
|
||||
used.
|
||||
|
||||
### Installers (2026-11-09, ADR 0026)
|
||||
|
||||
No new crate. The installers are built with tools that are not Rust dependencies, so
|
||||
`cargo deny` doesn't see them; they are listed here:
|
||||
|
||||
* **WiX Toolset 5** (Windows MSI), Microsoft Reciprocal Licence (MS-RL). A build tool, but the
|
||||
MSI also carries parts of it: the WixUI dialog definitions and, for the Finish page's "Launch
|
||||
AniCraft", the `Wix4UtilCA` custom-action DLL. MS-RL asks that files containing its code be
|
||||
distributed with that licence and their source, which is public at
|
||||
<https://github.com/wixtoolset/wix>. Every Craft app ships the same; **counsel to confirm** (open
|
||||
item below).
|
||||
* **AppImage type2-runtime** (prepended to each AppImage), MIT, statically linking libfuse3
|
||||
(LGPL-2.1) and squashfuse (BSD-2-Clause). A separate program in the same file, not linked
|
||||
with AniCraft. Pinned by version and SHA-256 in `packaging/linux/package.sh`.
|
||||
* **appimagetool** (MIT), **nfpm** (MIT), **flatpak-builder** (LGPL-2.1), Apple's `hdiutil`,
|
||||
`codesign`, `notarytool`, `sips` and `iconutil`, Microsoft's `signtool`: build tools only;
|
||||
nothing of them ships.
|
||||
* The Flatpak runs on the freedesktop runtime from Flathub; the runtime isn't in our bundle.
|
||||
* `packaging/macos/dmg/generate.py` uses Pillow (MIT-CMU), `ds_store` and `mac_alias` (MIT) to
|
||||
write committed files; none of them ships.
|
||||
|
||||
## 3. Fonts, graphics and other assets
|
||||
|
||||
* **Fonts**: only the four fonts embedded by egui (`epaint_default_fonts`): Ubuntu Light
|
||||
@@ -129,4 +150,5 @@ used.
|
||||
| Counsel review of this document (patents, XFL interoperability, ActionScript compatibility and naming) | Open, before the first public release |
|
||||
| "AniCraft" trademark clearance | Settled by the project lead (2026-11-09): the name is kept |
|
||||
| Freedom-to-operate patent search for core animation features | Open (recommended before 1.0) |
|
||||
| Full licence-text bundle generation (`cargo about`) in the release pipeline | Open (M8) |
|
||||
| Full licence-text bundle generation (`cargo about`) in the release pipeline | Open (M8; the installers ship `LICENSE-*`, `NOTICE`, `ATTRIBUTION.md` and the font OFLs today) |
|
||||
| WiX's MS-RL parts inside the MSI (WixUI, `Wix4UtilCA`) and the AppImage runtime's LGPL libfuse3 | Open: family-wide practice, counsel to confirm (ADR 0026) |
|
||||
+48
-2
@@ -13,7 +13,7 @@ commands, with migration on load (ADR 0003).
|
||||
The version lives in one place, `[workspace.package]` in `Cargo.toml`, and the stage in
|
||||
`RELEASE_STAGE` (`src/app.rs`). The About window, the CLI's `serve` handshake and the
|
||||
`generator` field of saved files all read it. Every version gets a section in `CHANGELOG.md`
|
||||
and an annotated tag (`v0.1.0`) on `main`.
|
||||
and a `v<version>` tag, created when its draft release is published (below).
|
||||
|
||||
## How changes land
|
||||
|
||||
@@ -27,6 +27,49 @@ and an annotated tag (`v0.1.0`) on `main`.
|
||||
hooks in `scripts/git-hooks` refuse it locally; branch protection should require PRs on the
|
||||
remote).
|
||||
|
||||
## Installers and packaging
|
||||
|
||||
`packaging/` holds every installer (ADR 0026), in the Craft family's layout, so the family's
|
||||
shared release workflow builds them. `.github/workflows/release.yml` runs it on every push to
|
||||
the `release` branch (and by hand from the Actions tab):
|
||||
|
||||
| OS | Artifacts (`dist/release/`) | Script |
|
||||
|---|---|---|
|
||||
| Windows x64, arm64 | `anicraft-<v>-windows-<arch>.msi`, `-portable.zip`, `-symbols.zip` | `packaging/windows/package.ps1 -Arch x64` |
|
||||
| macOS universal | `anicraft-<v>-macos-universal.dmg`, `anicraft-cli-<v>-macos-universal.zip` | `packaging/macos/package.sh --arch universal`, then `verify.sh` |
|
||||
| Linux x86_64, aarch64 | `.AppImage` (+ `.zsync`), `.deb`, `.rpm`, `.tar.gz`; Flatpak and Arch packages made from the tarball | `packaging/linux/package.sh`, `flatpak-bundle.sh` |
|
||||
| Linux riscv64 | `.deb`, `.rpm`, `.tar.gz` (cross-compiled) | `package.sh --formats "deb rpm tar"` |
|
||||
| FreeBSD x86_64, aarch64 | `.tar.gz` | the shared workflow's built-in packager |
|
||||
|
||||
Every installer registers `.anicraft` (AniCraft is its default app) and offers AniCraft for
|
||||
`.fla` and `.xfl` under "Open with" without taking them over; installs the app icon, the
|
||||
`anicraft-cli` next to the app, and our licences and notices. The Windows MSI installs for the
|
||||
current account by default (`%LOCALAPPDATA%\Programs\ArtCraft\AniCraft`, no admin prompt) and
|
||||
for everyone on request; see `packaging/windows/INSTALLATION.md`. Each script runs on its own OS
|
||||
and writes to `dist/release/`; without signing secrets it warns and builds unsigned (Windows) or
|
||||
ad-hoc-signed (macOS) artifacts, which is how to try the packaging locally.
|
||||
|
||||
**Signing.** The secrets live in the repository's `release` environment: `WINDOWS_CERTIFICATE`
|
||||
and `WINDOWS_CERTIFICATE_PASSWORD`, or the six `AZURE_*` values for Azure Trusted Signing;
|
||||
`APPLE_CERTIFICATE`, `APPLE_CERTIFICATE_PASSWORD`, `KEYCHAIN_PASSWORD`, `APPLE_ID`,
|
||||
`APPLE_PASSWORD` (app-specific) and `APPLE_TEAM_ID` for Developer ID signing and notarization;
|
||||
`LINUX_SIGNING_KEY` (OpenPGP) for the Linux packages, the Flatpak and `SHA256SUMS.txt`. A run on
|
||||
`release` with a Windows or macOS secret missing fails before building. A run anywhere else
|
||||
builds unsigned artifacts.
|
||||
|
||||
**What CI checks.** Packaging lint, on every PR touching `packaging/`, workflows or the app icon:
|
||||
actionlint, shellcheck, PowerShell parsing, XML, `desktop-file-validate`, `appstreamcli
|
||||
validate`, the Flatpak manifests and icon files, and a WiX build of the installer for x64, x86
|
||||
and arm64 whose compiled scope, folder and registry rules are checked. Windows ARM64 packages the
|
||||
real MSI, installs it on an ARM64 runner, runs `anicraft-cli --version` and uninstalls it.
|
||||
`cargo test` (`src/packaging_tests.rs`) keeps the app id, document types, registry inventory and
|
||||
icons consistent across the three systems. Only a real release run builds the macOS bundle and
|
||||
DMG, the AppImage, deb, rpm and Flatpak, signs and notarizes.
|
||||
|
||||
**Publishing.** The workflow ends in a *draft* GitHub Release with every artifact and
|
||||
`SHA256SUMS.txt`. Check the artifacts, then publish the draft: that creates the `v<version>` tag
|
||||
on the release commit. CI never publishes.
|
||||
|
||||
## Before a release
|
||||
|
||||
* [ ] Counsel confirm the patent posture and the clean-room approach to opening Animate files
|
||||
@@ -38,4 +81,7 @@ and an annotated tag (`v0.1.0`) on `main`.
|
||||
* [ ] `ATTRIBUTION.md`, `NOTICE`, `licenses/` and `docs/legal/third-party-inventory.txt` are
|
||||
current.
|
||||
* [ ] `CHANGELOG.md` has the version's section; the version is bumped in `Cargo.toml` through a
|
||||
PR, and the merge commit on `main` is tagged.
|
||||
PR, merged to `main`, and `main` is pushed to `release`.
|
||||
* [ ] The release run is green and the draft has every artifact; on a clean machine per OS the
|
||||
installer installs, `.anicraft` files open AniCraft (macOS: see ADR 0026, not yet), and the
|
||||
app uninstalls cleanly. Then publish the draft (this tags `v<version>`).
|
||||
+3
-2
@@ -20,6 +20,7 @@ milestone ends with a green tree: build, tests, clippy, a `--screenshot` check a
|
||||
| Tests | 133 tests (adds point editing, closed-path anchors, curve fitting, pen/pencil/subselection commands, the Pen's path data, frame ranges, keyframe moves, range confirmations, frame selection and the frame clipboard): unit, analytic render, band/determinism, robustness fuzz over all commands, round trip (v1 and v2 files), structural sharing and history budget, render-service equivalence, confirmations, clipboard, transforms and align, GIF decode and timing, free-transform maths, UI-guideline enforcement, CLI. |
|
||||
| Ease of use & safety | **Visual language** (ADR 0008, revised): graphite palette, corners by role (square structure, softened controls, rounder menus and dialogs with soft depth), borders only between layout regions, flat buttons with a visible focus ring, vibrant timeline blocks (mint artwork, violet tweens), sentence-case headings, **collapsible sections with rules** (Preferences, Properties, dock, shortcut sheet), **Lucide icons** stroked as vectors via a new full SVG path reader; click targets ≥ 28 px (tools 40, rows 28, toggles 24); palette contrast, target sizes and "no raw colours or radii" are enforced by tests. Product principles written (`docs/product-principles.md`). Tiered destructive-action confirmations, enforced in the engine (ADR 0004). Unsaved-changes guard on close/new/open. **Crash-recovery autosave** (ADR 0015): unsaved work is copied in the background (every minute or 25 changes by default; Preferences › Files › Autosave, with an off switch) to `Recovery` in the settings folder, atomically and never over the user's file; an OS file lock per running window tells crashed sessions from open ones; the next start offers what was left behind in a non-blocking window (Restore as unsaved work with its original path, Discard with a second click, Later; File › Recover Autosaved Documents… brings it back); saves and clean exits remove the copy; headless `file.recovery_list/recover/discard_recovery/autosave`. Not yet: several open documents, older copies, the undo history. Overwrite checks for saves and exports. "Ctrl+Z to undo" hints. Command palette (Ctrl+K). Shortcut sheet (F1). Right-click menus on stage, frames and layers. Save As (Ctrl+Shift+S). **Shortcut editor** (F1): every menu command, tool and view key can be rebound, given extra keys or unbound; recording asks before taking a key from another action, reserved keys (palette, editor, Preferences, quit, play, Esc, Space, Tab) stay fixed, per-action and global reset; only the changes are saved in preferences, so untouched actions follow new defaults; menus, tooltips and the palette show the keys in effect. |
|
||||
| Platforms & preferences | ADR 0006 platform layer: ⌘ shortcut labels and an AniCraft app menu with a unified title bar on macOS; Exit and Preferences (Ctrl+U) on Windows and Linux; native file dialogs (XDG portal on Linux, with a fallback switch); wgpu with automatic OpenGL fallback; per-OS settings folder. **Preferences** window: theme (Graphite or High contrast), interface and data fonts (bundled default or any installed font), interface scale (75–200 %), stage render mode, file dialogs, reset confirmations. Edits render live (fixed the missing-repaint bug). Not yet: native macOS NSMenu, macOS/Linux CI runners. Verified on Windows only so far. |
|
||||
| Installers & release | **Packaging** (ADR 0026, `docs/release.md`): the Craft family's `packaging/` layout behind the shared release workflow. Windows MSI (x64, arm64; per-user by default, everyone on request, upgrades in place), portable and symbols zips; macOS universal DMG with a laid-out window and CLI zip; Linux AppImage, deb, rpm, tar.gz, Flatpak and Arch (x86_64, aarch64; riscv64 deb/rpm/tar). `.anicraft` opens AniCraft by default; `.fla`/`.xfl` offered under Open with. Signed and notarized on the `release` branch (missing secrets fail it), unsigned elsewhere; ends in a draft release. Packaging lint and a fixture WiX build guard PRs; `src/packaging_tests.rs` keeps ids and types in step. Not yet: double-clicking a document in Finder opens it (the app starts, the file doesn't open), AppImage desktop integration, portable mode, store listings, video export inside the Flatpak. |
|
||||
| Accessibility | **First pass** (ADR 0022, `docs/accessibility.md`): AccessKit (via eframe) gives every control a name and role, checked by a headless test that walks the tree in 23 interface states (custom-painted tools, layer rows and toggles, icon buttons, Library rows, every Properties field, the Motion Editor, every dialog; the stage is a named canvas; the status bar a polite live region). **Ctrl+F6 / Ctrl+Shift+F6** move focus between Stage, Timeline, Properties, Library and Tools (rebindable); focused controls keep Enter/Space/arrows while other shortcuts still work; pointer-only surfaces are not Tab stops. **High contrast** palette (Preferences › Theme) from the same roles, text ≥ 7:1, controls and focus ≥ 3:1; both palettes checked by the contrast test (the graphite one now meets AA everywhere). **Interface scale** 75–200 % holds up (stage refits, tools and timeline header scroll, status truncates). Not yet: stage elements and single frames exposed one by one, keyboard menu bar, following the OS contrast setting, manual passes with Narrator, VoiceOver and Orca. |
|
||||
| Stage rendering & build | **Tiled stage** (ADR 0007): 512 px cached tiles, batched per frame with one scene evaluation per frame, look-ahead ring and playback prefetch, scaled older tiles instead of blank areas, pixel-aligned (no seams). **Space-biased build**: debug build 6.9 GB → 1.04 GB, fresh build 44 s, edit rebuild 4–6 s (`docs/development.md`). |
|
||||
| Scale & performance | Pulled forward from M2: persistent document with snapshot undo (memory-budgeted history, save-point dirty tracking, History panel), background render worker with frame cache and playback look-ahead, band-parallel renderer with culling, compact streaming file format v2, `anicraft-cli bench`. Measured numbers are in `docs/performance.md`. Memory, sharing, file-size and culling budgets are a test on every PR; timing budgets are `anicraft-cli bench --check yes` (all met; the 1080p render is 15.3–15.8 ms against 16.7 ms). |
|
||||
@@ -36,7 +37,7 @@ milestone ends with a green tree: build, tests, clippy, a `--screenshot` check a
|
||||
| **M5** | Rich media | ~~Text engine~~ ✅ first slice (ADR 0012: `harfrust` shaping, `skrifa` outlines, line wrapping, outlines stored with the text; per-character styles, text on a path and input fields later); ~~bitmap import and bitmap fills~~ ✅; ~~audio layers, waveform display, stream sync~~ ✅ first slice (ADR 0020: WAV, Ogg Vorbis, MP3; `cpal` output; effects, volume and sounds in symbols later); ~~filters (blur, drop shadow, glow, colour matrix)~~ ✅, ~~bevel, gradient glow and gradient bevel~~ ✅ (ADR 0025; SVG export and XFL import; filter presets, reordering, on/off and tweened filter values later) and ~~blend modes~~ ✅ on Movie Clips. |
|
||||
| **M6** | Interactivity & extensibility | **Plug-ins: the Craft-family WebAssembly system** (same host model as PhotoCraft: `wasmi` sandbox, `plugin.*` commands; AniCraft ABI for vector/timeline operations and exporters): first slice ✅ (command plug-ins over the registry, ADR 0017; exporter and easing kinds later); ~~frame scripts on the same sandbox~~ ✅ and ~~button states in test-movie preview~~ ✅ first slice (ADR 0024: action IR, pure player, Actions panel, Test Movie); HTML canvas runtime export; command macros. **ActionScript compatibility, low priority** (ADR 0013), last in M6 and free to slip past M8: tier 1 keeps scripts (XFL frame scripts and class names stored verbatim, Actions panel, `script.*` commands); tier 2 runs the ActionScript 3 timeline subset (stop, play, go to frame or label, named instances, button events) in Test Movie and HTML canvas export through the same action IR as WebAssembly frame scripts. The full language, the `flash.*` API and SWF bytecode are not planned. |
|
||||
| **M7** | Advanced animation | Bone/IK tool; camera layer with depth; ~~variable-width strokes~~ ✅ first slice (ADR 0018: width profiles, Width tool, exports, tweens) and brush library; asset warp; graph-based easing presets library. |
|
||||
| **M8** | Release quality | Installers and signing for Windows/macOS/Linux; web build (wasm) of the editor; localisation; accessibility: first pass ✅ (ADR 0022: screen-reader names for every control, Ctrl+F6 panel focus, high-contrast theme, 200 % scale), next: stage elements and frames for screen readers, keyboard menu bar, the OS contrast setting; ~~crash-recovery autosave~~ ✅ (ADR 0015); documentation book. |
|
||||
| **M8** | Release quality | ~~Installers and signing for Windows/macOS/Linux~~ ✅ first slice (ADR 0026: family `packaging/` layout, MSI, DMG, AppImage/deb/rpm/Flatpak/tar.gz, `.anicraft` registered everywhere, signing wired to the release environment; next: opening documents from Finder, AppImage desktop integration, portable mode, store submissions); web build (wasm) of the editor; localisation; accessibility: first pass ✅ (ADR 0022: screen-reader names for every control, Ctrl+F6 panel focus, high-contrast theme, 200 % scale), next: stage elements and frames for screen readers, keyboard menu bar, the OS contrast setting; ~~crash-recovery autosave~~ ✅ (ADR 0015); documentation book. |
|
||||
|
||||
## Releases
|
||||
|
||||
@@ -57,7 +58,7 @@ titled with its milestone.
|
||||
| M5 | Audio layers: import, waveform, playback sync | timeline, layers |
|
||||
| M6 | ~~WebAssembly plug-ins (U2)~~ ✅ first slice (ADR 0017); ~~frame scripts and Test Movie on the plug-in host~~ ✅ first slice (ADR 0024); next: HTML canvas runtime export | command registry, plug-in host, action IR and player |
|
||||
| M7 | ~~Variable-width strokes~~ ✅ (ADR 0018); next: Brush tool and brush library | strokes, Pen and Pencil, width profiles |
|
||||
| M8 | ~~Crash-recovery autosave~~ ✅, ~~accessibility first pass~~ ✅ (ADR 0022); next: installers and signing, or the accessibility follow-ups | `.anicraft` format, session, AccessKit in eframe |
|
||||
| M8 | ~~Crash-recovery autosave~~ ✅, ~~accessibility first pass~~ ✅ (ADR 0022), ~~installers and signing~~ ✅ first slice (ADR 0026); next: the accessibility follow-ups, or macOS document opening | `.anicraft` format, session, AccessKit in eframe |
|
||||
|
||||
Tasks that wait on an open track: XFL motion tweens (on M2's motion tweens); frame scripts and
|
||||
ActionScript (on M6's plug-in host); GPU as the default stage (on M3's parity).
|
||||
|
||||
Reference in new issue
Block a user