mirror of
https://github.com/Louis-CFM/coucou.git
synced 2026-12-07 07:32:35 +09:00
First stage of the Windows port. Lives entirely in `windows/`, shares only the 28 WAVs with the Mac app (single path constant in vite.config.ts) and touches no macOS file. Stack: Tauri 2 (Rust backend, TypeScript + Vite front, no framework), Mochi drawn in Canvas 2D. - Borderless transparent always-on-top window that never takes focus (WS_EX_NOACTIVATE + WS_EX_TOOLWINDOW), absent from the taskbar, placed at the top centre of the chosen display with per-monitor DPI handled in physical px. - Click-through: the cursor poll toggles set_ignore_cursor_events on the island shape. When hidden the window shrinks to an invisible 240x6 wake strip and the poll thread parks on a condvar — measured 0% CPU, 31 MB RAM. - BotEngine.swift ported to Canvas 2D: superellipse body, eye projection, emotes, badges, particles, tweens, mailbox morph, slap/dizzy, hover love. - GreetingCanvasView.swift ported: same timings, same seeded particles. - Island FSM, view sizes, colours, texts and sounds taken from the Swift app. - 28 WAVs preloaded in Web Audio at volume 0.12, mute button in the header. - Tray icon (Mochi, drawn in code by scripts/gen-icons.mjs): Open, Settings, Pause, Quit. Single instance, optional autostart. Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
4 lines
39 B
Rust
4 lines
39 B
Rust
fn main() {
|
|
tauri_build::build()
|
|
}
|