68 lines
2.4 KiB
Rust
68 lines
2.4 KiB
Rust
// 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#"
|
|
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!DOCTYPE plist PUBLIC "-//Apple Computer//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
|
|
<plist version="1.0">
|
|
<dict>
|
|
<key>CFBundleDevelopmentRegion</key>
|
|
<string>English</string>
|
|
<key>CFBundleDisplayName</key>
|
|
<string>Galaxy AI</string>
|
|
<key>CFBundleExecutable</key>
|
|
<string>galaxy-ai-oss</string>
|
|
<key>CFBundleIdentifier</key>
|
|
<string>com.samsung.GalaxyAI</string>
|
|
<key>CFBundleInfoDictionaryVersion</key>
|
|
<string>6.0</string>
|
|
<key>CFBundleName</key>
|
|
<string>Galaxy AI</string>
|
|
<key>CFBundlePackageType</key>
|
|
<string>APPL</string>
|
|
<key>CFBundleShortVersionString</key>
|
|
<string>0.1.0</string>
|
|
<key>LSApplicationCategoryType</key>
|
|
<string>public.app-category.developer-tools</string>
|
|
<key>NSHighResolutionCapable</key>
|
|
<true/>
|
|
<key>UIDesignRequiresCompatibility</key>
|
|
<true/>
|
|
<key>CFBundleURLTypes</key>
|
|
<array><dict><key>CFBundleURLName</key><string>Galaxy AI</string><key>CFBundleURLSchemes</key><array><string>galaxyai</string></array></dict></array>
|
|
<key>NSHumanReadableCopyright</key>
|
|
<string>© 2026, Samsung Electronics Co., Ltd.</string>
|
|
</dict>
|
|
</plist>
|
|
"#.as_bytes());
|