-
I'm trying to build a mix of cli and gui, using cli for interaction when starting the project in the terminal and parameters are present, otherwise launching a tauri window. Here is my code fn main() {
println!("Main start");
let args: Vec<String> = std::env::args().collect();
if args.len() > 1 {
println!("Hello, {}", args[1]);
eprintln!("Hello, {}", args[1]);
return;
}
tauri::Builder::default()
.invoke_handler(tauri::generate_handler![greet])
.run(tauri::generate_context!())
.expect("error while running tauri application");
} Frustratingly, it runs fine in debug mode, but in release mode the terminal doesn't print any valid information |
Beta Was this translation helpful? Give feedback.
Answered by
amrbashir
Jan 17, 2024
Replies: 1 comment
-
See #8305 (comment) |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
HalfSweet
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
See #8305 (comment)