diff --git a/README.md b/README.md index 629f970..2dee0da 100644 --- a/README.md +++ b/README.md @@ -24,3 +24,5 @@ cargo run --release Big thanks to https://github.com/unitycoder/UnityLauncherPro Most of the required information about how data is stored by Unity HUB is taken from there. + +Thanks for the icon to the [Papirus Development Team](https://github.com/PapirusDevelopmentTeam/papirus-icon-theme/) \ No newline at end of file diff --git a/egui_client/Cargo.lock b/egui_client/Cargo.lock index 7ca0592..ce59b49 100644 --- a/egui_client/Cargo.lock +++ b/egui_client/Cargo.lock @@ -1613,6 +1613,7 @@ dependencies = [ "image", "rfd", "rusty_hub", + "winres", ] [[package]] @@ -2346,6 +2347,15 @@ dependencies = [ "x11-dl", ] +[[package]] +name = "winres" +version = "0.1.12" +source = "registry+https://github.com/rust-lang/crates.io-index" +checksum = "b68db261ef59e9e52806f688020631e987592bd83619edccda9c47d42cde4f6c" +dependencies = [ + "toml", +] + [[package]] name = "wio" version = "0.2.2" diff --git a/egui_client/Cargo.toml b/egui_client/Cargo.toml index a5aadcd..775c2e2 100644 --- a/egui_client/Cargo.toml +++ b/egui_client/Cargo.toml @@ -3,6 +3,7 @@ name = "rusty_hub_egui" version = "0.1.0" edition = "2021" homepage = "https://github.com/Leinnan/rusty_hub" +build = "build.rs" [profile.release] opt-level = 'z' @@ -20,4 +21,7 @@ eframe = "0.19.0" egui_extras = "0.19.0" rusty_hub = { path="../rusty_hub" } image = { version = "0.24.0", default-features = false, features = ["png"] } -rfd = "0.10.0" \ No newline at end of file +rfd = "0.10.0" + +[target.'cfg(windows)'.build-dependencies] +winres = "0.1" \ No newline at end of file diff --git a/egui_client/build.rs b/egui_client/build.rs new file mode 100644 index 0000000..50a6b58 --- /dev/null +++ b/egui_client/build.rs @@ -0,0 +1,13 @@ +#[cfg(windows)] +extern crate winres; + +#[cfg(windows)] +fn main() { + let mut res = winres::WindowsResource::new(); + res.set_icon("static/hub.ico"); + res.compile().unwrap(); +} + +#[cfg(unix)] +fn main() { +} \ No newline at end of file diff --git a/egui_client/static/hub.ico b/egui_client/static/hub.ico new file mode 100644 index 0000000..4b3442b Binary files /dev/null and b/egui_client/static/hub.ico differ diff --git a/egui_client/static/hub.png b/egui_client/static/hub.png index 7e1a57a..6356123 100644 Binary files a/egui_client/static/hub.png and b/egui_client/static/hub.png differ