app: build as a windowed app so no console opens with it

The exe was a console-subsystem binary, so every launch allocated a console
window: from Explorer, from the Run key at login, everywhere. The PE header
now says windowed (`windows_subsystem = "windows"`), and Windows creates no
console for the process.

The printing modes still work from a shell: `attach_console` borrows the
console of whatever started the app, and does nothing when nothing did. The
daemon was already spawned with `DETACHED_PROCESS`, so it never had a window
of its own, and ffmpeg goes through `ffmpeg-sidecar`, which passes
`CREATE_NO_WINDOW` on each spawn.
This commit is contained in:
vhaudiquet committed 2026-11-19 18:49:30 +01:00
1 parent eabc3780c9
commit 673cddfff6
3 files changed
+28

No files matched your search

+5
View File
@@ -9,6 +9,11 @@ named-pipe protocol and draws with [rune](https://github.com/anomalyco/rune).
cargo run
```
The binary is a windowed app on Windows (`windows_subsystem = "windows"` in `main.rs`), so
launching it from Explorer, the Run key or the login item never opens a console. The printing
modes still work from a shell: `attach_console` borrows the console of whatever started the app,
and nothing happens when nothing did.
The app starts the daemon if it isn't running, then reads its settings and status. `cargo run --
--probe` does the same without a window and prints the daemon's answers; `cargo run -- --games`
prints how many timelines load from disk.