Quick start
Preview a theme, run the mock greeter, and build a native bundle.
Run these commands from the repository root after completing environment setup.
1. Preview a theme
Run an automated UI walkthrough in a single resizable desktop window:
# Minimal static fallback theme
fvm dart run packages/akari_cli/bin/akari.dart preview --theme themes/fallback
# Default theme
fvm dart run packages/akari_cli/bin/akari.dart preview --theme themes/default
preview drives frontend authentication events without starting a backend, camera, or PAM session. By default, it runs both face-success and password-fallback journeys and exits automatically.
- Run a single scenario with
--scenario face-successor--scenario password-fallback. - If a check fails,
previewexits with a nonzero code and saves logs underbuild/tool/runs/.
Preview the native splash
To inspect the standalone loading screen without launching the greeter, run:
fvm dart run packages/akari_cli/bin/akari.dart run splashPress Escape or close the window to exit.
2. Run with the mock backend
Start the Flutter greeter and Rust mock backend over an isolated private D-Bus session:
# Fullscreen across connected monitors (default)
fvm dart run packages/akari_cli/bin/akari.dart run --theme themes/fallback
# Windowed mode for desktop iteration
AKARI_WINDOW_MODE=windowed fvm dart run packages/akari_cli/bin/akari.dart run --theme themes/fallback
The mock backend exercises the production D-Bus transport without touching system accounts:
- Enter
passwordto simulate a successful login. - Saving Dart files or
*.scene.jsonautomatically regenerates scene code and hot reloads the window.
| Terminal key | Action |
|---|---|
r | Regenerate scenes and hot reload |
R | Hot restart |
q | Quit the session |
For multi-monitor focus, hotplug, nested Sway scaling, or fixed-resolution screenshots, see Test displays and scaling.
3. Build a release bundle
Compile the selected theme, the production Rust backend, and the native splash screen in release mode:
fvm dart run packages/akari_cli/bin/akari.dart build --theme themes/fallback --jobs 4
Successful builds link outputs under build/out/:
build/out/fallback: complete Flutter Linux bundle (distribute the entire directory together).build/out/backend: production Rust backend executable.build/out/akari-splash: native DRM/KMS and windowed startup splash executable.
build only compiles artifacts; it does not modify system services. To test real PAM login in a TTY, follow Standalone greetd testing.