mirror of
https://github.com/starship/starship
synced 2024-09-06 00:09:26 +00:00
![Segev Finer](/assets/img/avatar_default.png)
* 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(())
|
|
}
|