diff --git a/Cargo.toml b/Cargo.toml index 865fde3..3805a51 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -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" diff --git a/build.rs b/build.rs new file mode 100644 index 0000000..b249850 --- /dev/null +++ b/build.rs @@ -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() {} diff --git a/read.ico b/read.ico new file mode 100644 index 0000000..31210de Binary files /dev/null and b/read.ico differ diff --git a/read.rc b/read.rc new file mode 100644 index 0000000..522eaa0 --- /dev/null +++ b/read.rc @@ -0,0 +1 @@ +1 ICON "read.ico"