mirror of
https://github.com/sxyazi/yazi.git
synced 2026-07-21 23:01:05 +00:00
12 lines
327 B
Rust
12 lines
327 B
Rust
use std::{env, error::Error};
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
let dir = env::var("OUT_DIR").unwrap();
|
|
if dir.contains("\\target\\release\\build\\yazi-fm-") {
|
|
panic!(
|
|
"Unwinding must be enabled for Windows. Please use `cargo build --profile release-windows --locked` instead to build Yazi."
|
|
);
|
|
}
|
|
|
|
Ok(())
|
|
}
|