From 36d5be7ef1168aef0cd1c5107414ddf56adbb9ec Mon Sep 17 00:00:00 2001 From: Jacob Okamoto Date: Sun, 27 Aug 2023 19:11:58 -0500 Subject: [PATCH] use embed-resource for resource compilation --- examples/windows/Cargo.toml | 2 +- examples/windows/build.rs | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/examples/windows/Cargo.toml b/examples/windows/Cargo.toml index 6e5b5f3..631096e 100644 --- a/examples/windows/Cargo.toml +++ b/examples/windows/Cargo.toml @@ -9,4 +9,4 @@ edition = "2021" tray-item = { path = "../../" } [build-dependencies] -windres = "*" +embed-resource = "2.3" diff --git a/examples/windows/build.rs b/examples/windows/build.rs index 95038a7..bb01348 100644 --- a/examples/windows/build.rs +++ b/examples/windows/build.rs @@ -1,5 +1,5 @@ -use windres::Build; +extern crate embed_resource; fn main() { - Build::new().compile("tray-example.rc").unwrap(); + embed_resource::compile("tray-example.rc", embed_resource::NONE); }