diff --git a/Cargo.lock b/Cargo.lock index 165b260..67ab5c3 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -751,6 +751,7 @@ dependencies = [ "slog 2.5.2 (registry+https://github.com/rust-lang/crates.io-index)", "streamdeck-rs 0.5.0 (registry+https://github.com/rust-lang/crates.io-index)", "tokio 0.2.21 (registry+https://github.com/rust-lang/crates.io-index)", + "winres 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)", ] [[package]] @@ -1410,6 +1411,14 @@ name = "winapi-x86_64-pc-windows-gnu" version = "0.4.0" source = "registry+https://github.com/rust-lang/crates.io-index" +[[package]] +name = "winres" +version = "0.1.11" +source = "registry+https://github.com/rust-lang/crates.io-index" +dependencies = [ + "toml 0.5.6 (registry+https://github.com/rust-lang/crates.io-index)", +] + [[package]] name = "ws2_32-sys" version = "0.2.1" @@ -1612,6 +1621,7 @@ dependencies = [ "checksum winapi-build 0.1.1 (registry+https://github.com/rust-lang/crates.io-index)" = "2d315eee3b34aca4797b2da6b13ed88266e6d612562a0c46390af8299fc699bc" "checksum winapi-i686-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ac3b87c63620426dd9b991e5ce0329eff545bccbbb34f3be09ff6fb6ab51b7b6" "checksum winapi-x86_64-pc-windows-gnu 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)" = "712e227841d057c1ee1cd2fb22fa7e5a5461ae8e48fa2ca79ec42cfc1931183f" +"checksum winres 0.1.11 (registry+https://github.com/rust-lang/crates.io-index)" = "ff4fb510bbfe5b8992ff15f77a2e6fe6cf062878f0eda00c0f44963a807ca5dc" "checksum ws2_32-sys 0.2.1 (registry+https://github.com/rust-lang/crates.io-index)" = "d59cefebd0c892fa2dd6de581e937301d8552cb44489cdff035c6187cb63fa5e" "checksum yaml-rust 0.4.3 (registry+https://github.com/rust-lang/crates.io-index)" = "65923dd1784f44da1d2c3dbbc5e822045628c590ba72123e1c73d3c230c4434d" "checksum yew 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)" = "ca078a19e3459f7d73b135015477bc8cdcc92c3f4a058ae949f4d957a47dfd55" diff --git a/plugin/Cargo.toml b/plugin/Cargo.toml index a60e6c3..1f4a25d 100644 --- a/plugin/Cargo.toml +++ b/plugin/Cargo.toml @@ -8,6 +8,7 @@ readme = "README.md" keywords = ["stream-deck", "sound-blaster"] license = "MIT/Apache-2.0" edition = "2018" +build = "build.rs" [badges] travis-ci = { repository = "mdonoughe/sbzdeck" } @@ -23,3 +24,6 @@ serde_json = "1" slog = { version = "2", features = ["max_level_trace", "release_max_level_info"] } streamdeck-rs = "0.5" tokio = { version = "0.2", features = ["macros", "rt-core", "stream", "time"] } + +[build-dependencies] +winres = "0.1" diff --git a/plugin/build.rs b/plugin/build.rs new file mode 100644 index 0000000..f1c4a54 --- /dev/null +++ b/plugin/build.rs @@ -0,0 +1,5 @@ +fn main() { + let mut res = winres::WindowsResource::new(); + res.set_icon("categoryIcon.ico"); + res.compile().unwrap(); +} diff --git a/plugin/categoryIcon.ico b/plugin/categoryIcon.ico new file mode 100644 index 0000000..5f113f4 Binary files /dev/null and b/plugin/categoryIcon.ico differ