Enable tray-icon feature in Tauri dependencies. Add system tray with Open and Quit menu items. Implement tray icon click handlers to restore main window. Add window event handlers to hide window on close/minimize instead of exiting application. Add restore_main_window and hide_main_window helper functions for window visibility management.
23 lines
641 B
TOML
23 lines
641 B
TOML
[package]
|
|
name = "nexavpn-desktop"
|
|
version = "0.1.0"
|
|
description = "NexaVPN desktop client"
|
|
authors = ["NexaVPN"]
|
|
edition = "2021"
|
|
|
|
[lib]
|
|
name = "nexavpn_desktop"
|
|
crate-type = ["staticlib", "cdylib", "rlib"]
|
|
|
|
[build-dependencies]
|
|
tauri-build = { version = "2.5.5" }
|
|
|
|
[dependencies]
|
|
base64 = "0.22"
|
|
rand_core = { version = "0.6", features = ["getrandom"] }
|
|
reqwest = { version = "0.12", default-features = false, features = ["json", "rustls-tls"] }
|
|
serde = { version = "1.0", features = ["derive"] }
|
|
serde_json = "1.0"
|
|
tauri = { version = "2.10.1", features = ["tray-icon"] }
|
|
x25519-dalek = { version = "2.0", features = ["static_secrets"] }
|