Add read.ico as windows exe icon resource

This commit is contained in:
2026-05-21 17:29:31 +08:00
parent af141b581d
commit 8e8ba01336
4 changed files with 12 additions and 0 deletions

View File

@@ -3,6 +3,10 @@ name = "epub-read"
version = "0.1.0"
edition = "2021"
description = "ePub reader with egui"
build = "build.rs"
[build-dependencies]
embed-resource = "2.4"
[[bin]]
name = "epub-read"

7
build.rs Normal file
View File

@@ -0,0 +1,7 @@
#[cfg(target_os = "windows")]
fn main() {
embed_resource::compile("read.rc", embed_resource::NONE);
}
#[cfg(not(target_os = "windows"))]
fn main() {}

BIN
read.ico Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

1
read.rc Normal file
View File

@@ -0,0 +1 @@
1 ICON "read.ico"