clean up run_with_callback api

This commit is contained in:
Markus Unterwaditzer
2025-11-17 10:45:28 +01:00
committed by Markus Unterwaditzer
parent bb6135c682
commit 73a5d324c4
2 changed files with 9 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ async fn run_installer(app_handle: tauri::AppHandle, args: String) -> anyhow::Re
tauri::async_runtime::spawn_blocking(move || {
installer::run_with_callback(
// TODO: we should split using something similar to shlex in python
args.split_whitespace().map(String::from).collect(),
args.split_whitespace(),
Some(Box::new(move |output| {
app_handle
.emit("installer-output", output)