mirror of
https://github.com/storytold/figcraft.git
synced 2026-12-05 19:51:38 -05:00
95ccaf2c6f
`apps/figcraft` keeps the same desktop behaviour but splits its launch into a library (`figcraft::run`) and a shim `main.rs` that calls it. The window, arguments, services and the run loop move into `lib.rs` unchanged; the only additions are the dependency split that keeps today's desktop features (rfd, arboard, accesskit, clipboard, wayland, x11) on desktop, and the Android entry. Android has no command line, so its launch is the default one: no control server, no automation roots, no files to open and no invite links, and the home screen shows. rfd and arboard have no backend for the target (they do not compile there), so the native file dialogs answer cancelled and the system clipboard beyond egui's text is desktop only. Android's NativeActivity entry point (a later step) opens the same app through `figcraft::run_android`, which hands eframe the activity handle. This is the groundwork for another host opening the same app; it changes no desktop code path.