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

+1
View File
@@ -27,6 +27,7 @@ ureq = "3.5"
winreg = "0.56"
windows = { version = "0.62", features = [
"Win32_Foundation",
"Win32_System_Console",
"Win32_System_Diagnostics_ToolHelp",
"Win32_System_Threading",
] }