diff --git a/Cargo.lock b/Cargo.lock index a40c57c..e73d4c1 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -1179,6 +1179,7 @@ dependencies = [ "rcedit", "serde", "toml", + "winres", "wry", ] diff --git a/neutauri_bundler/Cargo.toml b/neutauri_bundler/Cargo.toml index d6739f9..5149660 100644 --- a/neutauri_bundler/Cargo.toml +++ b/neutauri_bundler/Cargo.toml @@ -14,4 +14,13 @@ toml = "0.5" wry = {version = "0.15", features = ["devtools"]} [target.'cfg(windows)'.dependencies] -rcedit = {git = "https://github.com/Tim-Paik/rcedit-rs.git"} \ No newline at end of file +rcedit = {git = "https://github.com/Tim-Paik/rcedit-rs.git"} + +[target.'cfg(windows)'.build-dependencies] +winres = "0.1" + +[package.metadata.winres] +FileDescription = "Neutauri Bundler" +LegalCopyright = "@2022 Neutauri Developers" +OriginalFilename = "" +ProductName = "Neutauri" diff --git a/neutauri_bundler/build.rs b/neutauri_bundler/build.rs new file mode 100644 index 0000000..f436fab --- /dev/null +++ b/neutauri_bundler/build.rs @@ -0,0 +1,12 @@ +#[cfg(windows)] +extern crate winres; + +#[cfg(windows)] +fn main() { + let mut res = winres::WindowsResource::new(); + res.set_icon("../neutauri_runtime/wry.ico"); + res.compile().unwrap(); +} + +#[cfg(unix)] +fn main() {} diff --git a/neutauri_runtime/Cargo.toml b/neutauri_runtime/Cargo.toml index 3be24f4..e93e4c0 100644 --- a/neutauri_runtime/Cargo.toml +++ b/neutauri_runtime/Cargo.toml @@ -11,3 +11,11 @@ wry = "0.15" [target.'cfg(windows)'.build-dependencies] winres = "0.1" + +[package.metadata.winres] +FileDescription = "" +FileVersion = "" +LegalCopyright = "" +OriginalFilename = "" +ProductName = "" +ProductVersion = ""