From 34f71ccdb088508ddc42ee013e930a0392d1b9c5 Mon Sep 17 00:00:00 2001 From: 21pages Date: Fri, 30 Jun 2023 11:50:16 +0800 Subject: [PATCH] remove windows keepawake dep Signed-off-by: 21pages --- Cargo.lock | 4 ++-- Cargo.toml | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/Cargo.lock b/Cargo.lock index 191cf4013..b60215d5d 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -3298,8 +3298,8 @@ dependencies = [ [[package]] name = "keepawake" -version = "0.4.2" -source = "git+https://github.com/segevfiner/keepawake-rs#ade0b2baa1440807c8089e9ed24e5d722468651e" +version = "0.4.3" +source = "git+https://github.com/rustdesk-org/keepawake-rs#ac395ef826b32a077bc5d2fe108cf71fde8fe2e6" dependencies = [ "anyhow", "apple-sys", diff --git a/Cargo.toml b/Cargo.toml index 35745e5f0..6f7e8c08f 100644 --- a/Cargo.toml +++ b/Cargo.toml @@ -114,7 +114,9 @@ objc_id = "0.1" tray-icon = { git = "https://github.com/rustdesk-org/tray-icon" } tao = { git = "https://github.com/rustdesk-org/tao", branch = "muda" } image = "0.24" -keepawake = { git = "https://github.com/segevfiner/keepawake-rs" } + +[target.'cfg(any(target_os = "macos", target_os = "linux"))'.dependencies] +keepawake = { git = "https://github.com/rustdesk-org/keepawake-rs" } [target.'cfg(target_os = "linux")'.dependencies] psimple = { package = "libpulse-simple-binding", version = "2.27" }