edit/build.rs
Leonard Hecker 52286fcf02
Replace winres with winresource (#407)
Apparently `winres` is unmaintained and
`winresource` contains additional bug fixes.
2025-06-03 17:47:26 +02:00

14 lines
489 B
Rust

// Copyright (c) Microsoft Corporation.
// Licensed under the MIT License.
fn main() {
#[cfg(windows)]
if std::env::var("CARGO_CFG_TARGET_OS").unwrap_or_default() == "windows" {
winresource::WindowsResource::new()
.set_manifest_file("src/bin/edit/edit.exe.manifest")
.set("FileDescription", "Microsoft Edit")
.set("LegalCopyright", "© Microsoft Corporation. All rights reserved.")
.compile()
.unwrap();
}
}