Skip to content

Commit

Permalink
chore: use winresource instead of winres (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
Aerocatia authored Oct 8, 2024
1 parent 159f747 commit 685f814
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 10 deletions.
84 changes: 78 additions & 6 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -38,4 +38,4 @@ name = "benchmark"
harness = false

[build-dependencies]
winres = "0.1.12"
winresource = "0.1.17"
6 changes: 3 additions & 3 deletions build.rs
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
extern crate winres;
extern crate winresource;

fn main() {
if cfg!(target_os = "windows") {
winres::WindowsResource::new().compile().unwrap();
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
winresource::WindowsResource::new().compile().unwrap();
}
}

0 comments on commit 685f814

Please sign in to comment.