mirror of
https://github.com/Llewellynvdm/starship.git
synced 2024-11-24 13:47:38 +00:00
a98908f05e
* feat: Add a Windows application manifest Closes #3589 * Enable longPathAware * Switch to winres crate * Only depend on winres on Windows * Switch to cfg attribute
15 lines
301 B
Rust
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(())
|
|
}
|