In my job we're developing a desktop variant of our webapp via tauri and for the past week I cannot get tauri to evaluate JS code.
I've looked through most of the github issues and none answer my questions about what I'm doing wrong.
This here is our lib.rs file or atleast a part of it, I cannot share everything. How and where should I call the window.eval from? The examples from the documentation dont work for me...
pub fn run() {
setup_logger();
info!("Starting Tauri Application Builder...");
tauri::Builder::default()
// This plugin MUST be initialized first
.plugin(tauri_plugin_single_instance::init(|_app, argv, _cwd| {
info!("Secondary instance triggered. Args: {:?}", argv);
}))
.setup(|app| {
// Handle file association
let files = parse_files_from_command_line();
handle_file_associations(app.handle().clone(), files);
info!("Setup complete. Returning Ok(()).");
Ok(())
})
.plugin(tauri_plugin_oauth::init())
.plugin(tauri_plugin_deep_link::init())
.run(tauri::generate_context!())
.expect("error while running tauri application");
info!("Application exited from the run loop.");
}