Skip to content

Commit d3bd5e7

Browse files
author
sin5
committed
add logo
1 parent da69469 commit d3bd5e7

File tree

4 files changed

+29
-2
lines changed

4 files changed

+29
-2
lines changed

Cargo.lock

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

Cargo.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ version = "0.1.0"
44
authors = ["zhouwenxiang <zhouwx@lanxi.com>"]
55
edition = "2018"
66

7-
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
7+
[build-dependencies]
8+
winres = "0.1"
89

910
[dependencies]
1011
# 基础组件

build.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
fn main() {
2+
if cfg!(target_os = "windows") {
3+
let mut res = winres::WindowsResource::new();
4+
res.set_icon("resources/logo.ico"); // 图标路径
5+
res.compile().unwrap();
6+
}
7+
}

resources/logo.ico

843 Bytes
Binary file not shown.

0 commit comments

Comments
 (0)