When Docker isn't detected on startup, surface a dialog offering a one-click install (pkexec + get.docker.com on Linux, brew cask on macOS, winget on Windows) with a graceful fallback to manual steps and a link to official documentation. Install output streams back to the UI via a tauri event. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
12 lines
363 B
Rust
12 lines
363 B
Rust
use crate::install_helper::{self, InstallOptions};
|
|
|
|
#[tauri::command]
|
|
pub async fn detect_install_options() -> Result<InstallOptions, String> {
|
|
Ok(install_helper::detect_install_options())
|
|
}
|
|
|
|
#[tauri::command]
|
|
pub async fn run_docker_install(app_handle: tauri::AppHandle) -> Result<(), String> {
|
|
install_helper::platform::run_install(&app_handle).await
|
|
}
|