fix build

This commit is contained in:
Djkato 2022-09-08 21:04:09 +02:00
parent 04012b1160
commit 69081c290f
2 changed files with 8 additions and 1 deletions

View file

@ -10,7 +10,7 @@ author = "https://djkato.net"
discord-rich-presence = "0.2.2"
regex = "1.6.0"
tray-item = "0.7.0"
windres = "*"
[dependencies.windows]
version = "0.39.0"
features = [
@ -20,3 +20,5 @@ features = [
"Win32_System_Threading",
"Win32_UI_WindowsAndMessaging",
]
[target.'cfg(windows)'.build-dependencies]
windres = "0.2.2"

View file

@ -1,5 +1,10 @@
#[cfg(windows)]
extern crate windres;
#[cfg(windows)]
use windres::Build;
#[cfg(windows)]
fn main() {
Build::new().compile("./icon/tray-icon.rc").unwrap();
}