servoshell: Switch from winres to winresources (#39344)

`winres` is unmaintained and it seems like `winresoures` is the
successor.

Testing: This should not have any behavior changes and just modifies
a build step, so shouldn't need tests.

Signed-off-by: Martin Robinson <mrobinson@igalia.com>
This commit is contained in:
Martin Robinson 2025-09-17 10:04:45 +02:00 committed by GitHub
parent 5fd01ca25f
commit 6deb42dbd5
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 18 additions and 27 deletions

View file

@ -26,7 +26,7 @@ bench = false
cc = "1.2"
[target.'cfg(windows)'.build-dependencies]
winres = "0.1"
winresource = "0.1"
[package.metadata.winres]
FileDescription = "Servo"

View file

@ -50,7 +50,7 @@ fn main() -> Result<(), Box<dyn Error>> {
if target_os == "windows" {
#[cfg(windows)]
{
let mut res = winres::WindowsResource::new();
let mut res = winresource::WindowsResource::new();
res.set_icon("../../resources/servo.ico");
res.set_manifest_file("platform/windows/servo.exe.manifest");
res.compile().unwrap();