forked from AxTps/Starlight_Lancher
18 lines
326 B
Rust
18 lines
326 B
Rust
#![cfg_attr(windows, windows_subsystem = "windows")]
|
|
|
|
#[cfg(windows)]
|
|
mod windows;
|
|
|
|
#[cfg(windows)]
|
|
fn main() {
|
|
if let Err(error) = windows::run() {
|
|
eprintln!("{error}");
|
|
std::process::exit(2);
|
|
}
|
|
}
|
|
|
|
#[cfg(not(windows))]
|
|
fn main() {
|
|
eprintln!("axolotl-installer-ui is only available on Windows");
|
|
}
|