// On Windows, we don't want to display a console window when the application is running in release // builds. See https://doc.rust-lang.org/reference/runtime.html#the-windows_subsystem-attribute. #![cfg_attr(feature = "release_bundle", windows_subsystem = "windows")] use anyhow::Result; use galaxy_core::{ channel::{Channel, ChannelConfig, ChannelState, OzConfig, WarpServerConfig}, AppId, }; fn main() -> Result<()> { let mut state = ChannelState::new( Channel::Oss, ChannelConfig { app_id: AppId::new("com", "samsung", "GalaxyAI"), logfile_name: "galaxy-ai.log".into(), server_config: WarpServerConfig::production(), oz_config: OzConfig::production(), telemetry_config: None, crash_reporting_config: None, autoupdate_config: None, mcp_static_config: None, }, ); if cfg!(debug_assertions) { state = state.with_additional_features(galaxy_core::features::DEBUG_FLAGS); } ChannelState::set(state); galaxy::run() } #[cfg(all(not(feature = "extern_plist"), target_os = "macos"))] embed_plist::embed_info_plist_bytes!(r#" CFBundleDevelopmentRegion English CFBundleDisplayName Galaxy AI CFBundleExecutable galaxy-ai-oss CFBundleIdentifier com.samsung.GalaxyAI CFBundleInfoDictionaryVersion 6.0 CFBundleName Galaxy AI CFBundlePackageType APPL CFBundleShortVersionString 0.1.0 LSApplicationCategoryType public.app-category.developer-tools NSHighResolutionCapable UIDesignRequiresCompatibility CFBundleURLTypes CFBundleURLNameGalaxy AICFBundleURLSchemesgalaxyai NSHumanReadableCopyright © 2026, Samsung Electronics Co., Ltd. "#.as_bytes());