MCPcopy Index your code
hub / github.com/algoscienceacademy/RustUI / start_desktop_build

Method start_desktop_build

src/dev_server.rs:415–434  ·  view source on GitHub ↗
(&mut self)

Source from the content-addressed store, hash-verified

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...");

Callers 1

rebuildMethod · 0.80

Calls 4

update_progressMethod · 0.80
cleanup_platformMethod · 0.80
set_processMethod · 0.80
pushMethod · 0.80

Tested by

no test coverage detected