Add read.ico as windows exe icon resource
This commit is contained in:
@@ -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
7
build.rs
Normal 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() {}
|
||||
Reference in New Issue
Block a user