YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
release-app fix build
Louis Beaumont2b8e8479c0f6
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 092b467a8..203b73690 100644--- a/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "0.17.3"+version = "0.17.4"description = ""authors = ["you"]license = ""diff --git a/screenpipe-vision/Cargo.toml b/screenpipe-vision/Cargo.tomlindex bb8ddbe59..5c718855d 100644--- a/screenpipe-vision/Cargo.toml+++ b/screenpipe-vision/Cargo.toml@@ -88,11 +88,11 @@ path = "examples/websocket.rs"[target.'cfg(target_os = "windows")'.dependencies]windows = { version = "0.58", features = ["Graphics_Imaging", "Media_Ocr", "Storage", "Storage_Streams"] }-xcap-macoswin = { package = "xcap", git = "https://github.com/mediar-ai/xcap", rev = "965bc99" }+xcap-win = { package = "xcap", git = "https://github.com/nashaofu/xcap", branch = "fix-pr" }[target.'cfg(target_os = "macos")'.dependencies]libc = "=0.2.164"-xcap-macoswin = { package = "xcap", git = "https://github.com/mediar-ai/xcap", rev = "965bc99" }+xcap-macos = { package = "xcap", git = "https://github.com/mediar-ai/xcap", rev = "965bc99" }[target.'cfg(target_os = "linux")'.dependencies]libc = "=0.2.164"diff --git a/screenpipe-vision/src/capture_screenshot_by_window.rs b/screenpipe-vision/src/capture_screenshot_by_window.rsindex 559f9f482..6310ec2f7 100644--- a/screenpipe-vision/src/capture_screenshot_by_window.rs+++ b/screenpipe-vision/src/capture_screenshot_by_window.rs@@ -7,12 +7,15 @@ use std::fmt;use std::time::Duration;use tokio::time;-#[cfg(not(target_os = "linux"))]-use xcap_macoswin::{Monitor, Window, XCapError};+#[cfg(target_os = "macos")]+use xcap_macos::{Monitor, Window, XCapError};#[cfg(target_os = "linux")]use xcap::{Monitor, Window, XCapError};+#[cfg(target_os = "windows")]+use xcap_win::{Monitor, Window, XCapError};+#[derive(Debug)]enum CaptureError {NoWindows,diff --git a/screenpipe-vision/src/core.rs b/screenpipe-vision/src/core.rsindex 8151defbf..905640234 100644--- a/screenpipe-vision/src/core.rs+++ b/screenpipe-vision/src/core.rs@@ -24,10 +24,13 @@ use std::{use tokio::sync::mpsc::Sender;use tokio::time::sleep;-#[cfg(not(target_os = "linux"))]-use xcap_macoswin::Monitor;+#[cfg(target_os = "macos")]+use xcap_macos::Monitor;++#[cfg(target_os = "windows")]+use xcap_win::Monitor;-#[cfg(not(target_os = "linux"))]+#[cfg(target_os = "linux")]use xcap::Monitor;pub struct CaptureResult {diff --git a/screenpipe-vision/src/monitor.rs b/screenpipe-vision/src/monitor.rsindex 18d6a16e5..8872306a9 100644--- a/screenpipe-vision/src/monitor.rs+++ b/screenpipe-vision/src/monitor.rs@@ -1,5 +1,8 @@-#[cfg(not(target_os = "linux"))]-use xcap_macoswin::Monitor;+#[cfg(target_os = "macos")]+use xcap_macos::Monitor;++#[cfg(target_os = "windows")]+use xcap_win::Monitor;#[cfg(target_os = "linux")]use xcap::Monitor;diff --git a/screenpipe-vision/src/utils.rs b/screenpipe-vision/src/utils.rsindex be93bdfc3..7a87f7243 100644--- a/screenpipe-vision/src/utils.rs+++ b/screenpipe-vision/src/utils.rs@@ -8,8 +8,11 @@ use log::{debug, error, warn};use std::hash::{DefaultHasher, Hash, Hasher};use std::time::{Duration, Instant};-#[cfg(not(target_os = "linux"))]-use xcap_macoswin::Monitor;+#[cfg(target_os = "macos")]+use xcap_macos::Monitor;++#[cfg(target_os = "windows")]+use xcap_win::Monitor;#[cfg(target_os = "linux")]use xcap::Monitor;