codeburn/windows/src-tauri/Cargo.toml
iamtoruk 54263810c9 fix(windows): let Quit actually exit and enforce a single tray instance
Quit CodeBurn in the tray menu called app.exit(0), but ExitRequested
was unconditionally prevented in the run loop, so the process never
actually exited. Only prevent exit when code is None (the popover
window closing on its own), letting an explicit app.exit(..) through.

Launching the menubar app twice left two processes running, each
registering its own flame + spend-badge tray icon pair, so the
notification area showed four icons for one app. Add
tauri-plugin-single-instance, registered first in the builder chain,
so a second launch just refocuses the running instance's popover.
2026-09-01 12:42:30 -07:00

41 lines
1.3 KiB
TOML

[package]
name = "codeburn-menubar"
version = "0.9.23"
description = "CodeBurn menubar (tray) app for Windows and Linux"
authors = ["AgentSeal"]
edition = "2021"
rust-version = "1.80"
[lib]
name = "codeburn_menubar_lib"
crate-type = ["staticlib", "cdylib", "rlib"]
[build-dependencies]
tauri-build = { version = "2", features = [] }
[dependencies]
tauri = { version = "2", features = ["tray-icon", "image-png"] }
tauri-plugin-opener = "2"
tauri-plugin-shell = "2"
tauri-plugin-single-instance = "2"
serde = { version = "1", features = ["derive"] }
serde_json = "1"
tokio = { version = "1", features = ["process", "io-util", "rt-multi-thread", "macros", "time", "sync"] }
thiserror = "1"
anyhow = "1"
dirs = "5"
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
fontdue = "0.9"
[target.'cfg(target_os = "windows")'.dependencies]
windows-sys = { version = "0.59", features = ["Win32_Foundation", "Win32_Graphics_Dwm", "Win32_UI_WindowsAndMessaging"] }
[target.'cfg(target_os = "linux")'.dependencies]
ksni = "0.3"
png = "0.17"
[features]
default = ["custom-protocol"]
# This feature is used for production builds or when a dev server is not specified. Don't
# change it unless you know what you're doing.
custom-protocol = ["tauri/custom-protocol"]