24 lines
793 B
Rust
24 lines
793 B
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")]
|
|
|
|
#[path = "channel_config.rs"]
|
|
mod channel_config;
|
|
|
|
use anyhow::Result;
|
|
use galaxy_core::{
|
|
channel::{Channel, ChannelState},
|
|
features,
|
|
};
|
|
|
|
// Simple wrapper around galaxy::run() for feature preview channel builds.
|
|
fn main() -> Result<()> {
|
|
ChannelState::set(
|
|
ChannelState::new(Channel::Preview, channel_config::load_config!("preview"))
|
|
.with_additional_features(features::PREVIEW_FLAGS)
|
|
.with_additional_features(&[features::FeatureFlag::ForceLogin]),
|
|
);
|
|
|
|
galaxy::run()
|
|
}
|