mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-04-13 21:40:33 +08:00
16 lines
422 B
Rust
Executable File
16 lines
422 B
Rust
Executable File
#![cfg_attr(not(debug_assertions), windows_subsystem = "windows")]
|
|
fn main() {
|
|
#[cfg(feature = "tokio-trace")]
|
|
console_subscriber::init();
|
|
|
|
// Check for --no-tray command line argument
|
|
let args: Vec<String> = std::env::args().collect();
|
|
if args.contains(&"--no-tray".to_string()) {
|
|
unsafe {
|
|
std::env::set_var("CLASH_VERGE_DISABLE_TRAY", "1");
|
|
}
|
|
}
|
|
|
|
app_lib::run();
|
|
}
|