(&mut self)
| 413 | } |
| 414 | |
| 415 | fn start_desktop_build(&mut self) -> Result<(), Box<dyn std::error::Error>> { |
| 416 | self.update_progress(0, 4, "Initializing desktop build..."); |
| 417 | self.cleanup_platform(Platform::Desktop); |
| 418 | thread::sleep(Duration::from_millis(500)); |
| 419 | |
| 420 | self.update_progress(1, 4, "Building application..."); |
| 421 | |
| 422 | // Build and run the counter app |
| 423 | let process = Command::new("cargo") |
| 424 | .args(["run", "--example", "todo_app"]) |
| 425 | .spawn()?; |
| 426 | |
| 427 | self.update_progress(2, 4, "Starting application..."); |
| 428 | let mut window = SimulatorWindow::new(Platform::Desktop); |
| 429 | window.set_process(process); |
| 430 | self.simulator_windows.push(window); |
| 431 | |
| 432 | self.update_progress(4, 4, "Desktop application ready!"); |
| 433 | Ok(()) |
| 434 | } |
| 435 | |
| 436 | fn start_ios_simulator(&mut self) -> Result<(), Box<dyn std::error::Error>> { |
| 437 | self.update_progress(0, 5, "Building for iOS..."); |
no test coverage detected