Skip to content

Commit

Permalink
windows ビルドの .exe にアイコン(仮)を付けました。
Browse files Browse the repository at this point in the history
  • Loading branch information
usagi committed Oct 9, 2023
1 parent f68ad03 commit 306ce25
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name = "virtual-avatar-connect"
version = "0.3.0"
edition = "2021"
build = "build.rs"

[lib]
name = "virtual_avatar_connect"
Expand Down Expand Up @@ -63,3 +64,6 @@ windows = { version = "0.51.1", features = [
"Globalization",
] }
winapi = { version = "0.3.9", features = ["wincodec"] }

[target.'cfg(windows)'.build-dependencies]
winres = "0.1"
7 changes: 7 additions & 0 deletions build.rs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
fn main() {
if cfg!(target_os = "windows") {
let mut res = winres::WindowsResource::new();
res.set_icon("icon.ico");
res.compile().unwrap();
}
}
Binary file added icon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions main.rc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
1 ICON "icon.ico"

0 comments on commit 306ce25

Please sign in to comment.