Skip to content

Commit ae6daf2

Browse files
committed
fix: maybe fix icon not working in CI builds?
1 parent a8f2ed4 commit ae6daf2

File tree

3 files changed

+7
-10
lines changed

3 files changed

+7
-10
lines changed

Cargo.lock

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ egui_ltreeview = { version = "0.6.1", features = ["persistence"] }
7474
egui_plot = "0.34.0"
7575
arboard = "3.6.1"
7676

77-
[target.'cfg(target_os = "windows")'.build-dependencies]
77+
[build-dependencies]
7878
winresource = "0.1.20"
7979

8080
# native:

build.rs

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,7 @@
11
fn main() {
2-
#[cfg(target_os = "windows")]
3-
{
4-
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
5-
let mut res = winresource::WindowsResource::new();
6-
res.set_icon("assets/wows_toolkit.ico");
7-
res.compile().unwrap();
8-
}
2+
if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" {
3+
let mut res = winresource::WindowsResource::new();
4+
res.set_icon("assets/wows_toolkit.ico");
5+
res.compile().unwrap();
96
}
107
}

0 commit comments

Comments
 (0)