diff --git a/Cargo.toml b/Cargo.toml index 43d01b2..5bdab2e 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -1,6 +1,6 @@ [package] name = "nbtworkbench" -version = "1.2.4" +version = "1.2.5" edition = "2021" description = "A modern NBT Editor written in Rust designed for performance and efficiency." license-file = "LICENSE" @@ -8,9 +8,10 @@ repository = "https://github.com/RealRTTV/nbtworkbench" keywords = ["nbt", "window", "unsafe", "editor", "tree"] categories = ["graphics", "rendering", "text-editors", "parser-implementations"] -[lib] -crate-type = ["cdylib", "rlib"] -path = "src/main.rs" +# Required for Wasm target, but breaks `winres` +#[lib] +#crate-type = ["cdylib", "rlib"] +#path = "src/main.rs" [package.metadata.winres] diff --git a/build.rs b/build.rs index 64a71a1..d1d5cdf 100644 --- a/build.rs +++ b/build.rs @@ -39,12 +39,12 @@ fn main() { if std::env::var("CARGO_CFG_TARGET_OS").unwrap() == "windows" { if let Err(e) = winres::WindowsResource::new() - .set_icon_with_id(r"src/assets/build/icon_256.ico", "1") .set_icon_with_id(r"src/assets/build/icon_128.ico", "2") .set_icon_with_id(r"src/assets/build/icon_64.ico", "3") .set_icon_with_id(r"src/assets/build/icon_48.ico", "4") .set_icon_with_id(r"src/assets/build/icon_32.ico", "5") .set_icon_with_id(r"src/assets/build/icon_16.ico", "6") + .set_icon_with_id(r"src/assets/build/icon_256.ico", "!") .compile() { eprintln!("Error! {e}");