How lilithmod/launcher works
Lilith Launcher is a Rust/Slint desktop launcher for the Lilith application. The main workflow starts at the launcher UI: a user requests startup, the app reads configuration, checks release metadata, selects and downloads the platform artifact if needed, verifies an existing artifact, then starts the child process and routes its output back to the UI and logs window. The README is brief; the launch and download stages are supported by sampled Rust source, while UI details are limited to the file tree and main.rs callbacks.
Main entry points: main.rs App orchestration · launch.rs Launch workflow · config.rs Configuration · app-window.slint Launcher windows
Components 13
Desktop interface
- Launcher windows
ui/app-window.slint
Application control
- App orchestration
src/main.rs
Release and launch
- Launch workflow
src/launch.rs - Release and artifact operations
src/download.rs - Update check
src/utils/update.rs
Local support
- Configuration
src/utils/config.rs - Launcher directories
src/utils/files.rs - Launcher config file
- Downloaded artifacts
- Log output
src/utils/log.rs
Other components
- User
- Lilith API
- Lilith process
Connections 18
- User → Launcher windows: uses
- App orchestration → Launcher windows: binds callbacks
src/main.rs - App orchestration → Log output: initializes
src/main.rs - App orchestration → Launcher directories: initializes directories
src/main.rs - App orchestration → Configuration: loads settings
src/main.rs - App orchestration → Update check: checks updates
src/main.rs - App orchestration → Launch workflow: starts or stops
src/main.rs - Launch workflow → Configuration: reads settings
src/launch.rs - Launch workflow → Launcher directories: locates artifact
src/launch.rs - Launch workflow → Release and artifact operations: fetches and downloads
src/launch.rs - Release and artifact operations → Lilith API: requests releases and artifacts
src/download.rs - Update check → Lilith API: requests version
src/utils/update.rs - Release and artifact operations → Downloaded artifacts: writes download
src/download.rs - Configuration → Launcher directories: gets config path
src/utils/config.rs - Configuration → Launcher config file: reads and writes
src/utils/config.rs - Launch workflow → Lilith process: spawns and monitors
src/launch.rs - Lilith process → Launcher windows: signals runtime events
- Lilith process → Launcher windows: streams log lines