diff options
-rw-r--r-- | launcher/src/main.rs | 19 |
1 files changed, 2 insertions, 17 deletions
diff --git a/launcher/src/main.rs b/launcher/src/main.rs index 959b517..b5c16d7 100644 --- a/launcher/src/main.rs +++ b/launcher/src/main.rs @@ -1,4 +1,4 @@ -use std::env::current_exe; +use std::env::{consts, current_exe}; use std::path::{Path, PathBuf}; use std::process::{Command, exit}; use dirs::home_dir; @@ -90,23 +90,8 @@ fn get_search_paths() -> [PathBuf; 29] { ] } -#[cfg(target_os = "macos")] -const PLATFORM: &str = "macOS/Darwin"; - -#[cfg(target_os = "linux")] -const PLATFORM: &str = "Linux"; - -#[cfg(target_os = "windows")] -const PLATFORM: &str = "Windows"; - -#[cfg(target_arch = "aarch64")] -const ARCH: &str = "ARM64"; - -#[cfg(target_arch = "x86_64")] -const ARCH: &str = "x86_64"; - fn show_system_info() { - println!("atomic-launcher: Starting atomic-launcher on {} ({})", PLATFORM, ARCH); + println!("atomic-launcher: Starting atomic-launcher on {} ({})", consts::OS, consts::ARCH); } // TODO: Rename these to "Atomic" |