14 lines
268 B
Rust
14 lines
268 B
Rust
use std::error::Error;
|
|
|
|
fn main() -> Result<(), Box<dyn Error>> {
|
|
shadow_rs::new()?;
|
|
|
|
if cfg!(target_os = "windows") {
|
|
winres::WindowsResource::new()
|
|
.set_manifest_file("keepawake.exe.manifest")
|
|
.compile()?;
|
|
}
|
|
|
|
Ok(())
|
|
}
|