starship/build.rs
Segev Finer a98908f05e
feat: Add a Windows application manifest (#3590)
* feat: Add a Windows application manifest

Closes #3589

* Enable longPathAware

* Switch to winres crate

* Only depend on winres on Windows

* Switch to cfg attribute
2022-02-20 18:12:40 +01:00

15 lines
301 B
Rust

use std::error::Error;
fn main() -> Result<(), Box<dyn Error>> {
shadow_rs::new().map_err(|err| err.to_string())?;
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();
res.set_manifest_file("starship.exe.manifest");
res.compile()?;
}
Ok(())
}