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
This commit is contained in:
Segev Finer
2022-02-20 19:12:40 +02:00
committed by GitHub
parent e09b821c42
commit a98908f05e
4 changed files with 58 additions and 2 deletions
+13 -2
View File
@@ -1,3 +1,14 @@
fn main() -> shadow_rs::SdResult<()> {
shadow_rs::new()
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(())
}