use std::error::Error; use crate::common::*; const PACKAGE: &str = "graphite-desktop-platform-linux"; pub fn main() -> Result<(), Box> { let app_bin = build_bin(PACKAGE, None)?; // TODO: Implement bundling for linux // TODO: Consider adding more useful cli if std::env::args().any(|a| a == "open") { run_command(&app_bin.to_string_lossy(), &[]).expect("failed to open app"); } else { println!("Binary built and placed at {}", app_bin.to_string_lossy()); eprintln!("Bundling for Linux is not yet implemented."); eprintln!("You can still start the app with the `open` subcommand. `cargo run -p graphite-desktop-bundle -- open`"); std::process::exit(1); } Ok(()) }