Skip to content

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

release-app fix linux and windows build

Louis Beaumont53b4e71e53e3
diff --git a/screenpipe-app-tauri/src-tauri/Cargo.toml b/screenpipe-app-tauri/src-tauri/Cargo.toml
index b145cbcbc..571ffc7fb 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.40.0"
+version = "0.40.1"
description = ""
authors = ["you"]
license = ""
diff --git a/screenpipe-core/Cargo.toml b/screenpipe-core/Cargo.toml
index 359f328c5..75c560680 100644
--- a/screenpipe-core/Cargo.toml
+++ b/screenpipe-core/Cargo.toml
@@ -47,6 +47,7 @@ cron = "0.13.0"
chrono = "0.4.38"
sentry = { workspace = true }
zip = "0.6.2"
+thiserror = "2.0.12"
[dev-dependencies]
reqwest = { workspace = true }
@@ -67,6 +68,5 @@ accessibility = { git = "https://github.com/eiz/accessibility.git", branch = "ma
objc = "0.2.7"
objc-foundation = "0.1.1"
-thiserror = "2.0.12"
core-foundation = "=0.10.0"
core-graphics = "=0.24.0"
diff --git a/screenpipe-core/src/operator/platforms/linux.rs b/screenpipe-core/src/operator/platforms/linux.rs
index 2cbe0bcd5..78eca3983 100644
--- a/screenpipe-core/src/operator/platforms/linux.rs
+++ b/screenpipe-core/src/operator/platforms/linux.rs
@@ -6,7 +6,7 @@ use std::fmt::Debug;
pub struct LinuxEngine;
impl LinuxEngine {
- pub fn new() -> Result<Self, AutomationError> {
+ pub fn new(use_background_apps: bool, activate_app: bool) -> Result<Self, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
@@ -18,25 +18,29 @@ impl AccessibilityEngine for LinuxEngine {
panic!("Linux implementation is not yet available")
}
- fn get_element_by_id(&self, _id: &str) -> Result<UIElement, AutomationError> {
+ fn get_focused_element(&self) -> Result<UIElement, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
}
- fn get_focused_element(&self) -> Result<UIElement, AutomationError> {
+ fn get_applications(&self) -> Result<Vec<UIElement>, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
}
- fn get_applications(&self) -> Result<Vec<UIElement>, AutomationError> {
+ fn get_application_by_name(&self, _name: &str) -> Result<UIElement, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
}
- fn get_application_by_name(&self, _name: &str) -> Result<UIElement, AutomationError> {
+ fn find_element(
+ &self,
+ selector: &Selector,
+ root: Option<&UIElement>,
+ ) -> Result<UIElement, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
@@ -145,7 +149,7 @@ impl UIElementImpl for LinuxUIElement {
))
}
- fn get_text(&self) -> Result<String, AutomationError> {
+ fn get_text(&self, max_depth: usize) -> Result<String, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Linux implementation is not yet available".to_string(),
))
diff --git a/screenpipe-core/src/operator/platforms/mod.rs b/screenpipe-core/src/operator/platforms/mod.rs
index 8c416479a..b5a8ba3bf 100644
--- a/screenpipe-core/src/operator/platforms/mod.rs
+++ b/screenpipe-core/src/operator/platforms/mod.rs
@@ -35,6 +35,8 @@ pub trait AccessibilityEngine: Send + Sync {
mod linux;
#[cfg(target_os = "macos")]
mod macos;
+#[cfg(target_os = "macos")]
+mod tree_search;
#[cfg(target_os = "windows")]
mod windows;
diff --git a/screenpipe-core/src/operator/tree_search.rs b/screenpipe-core/src/operator/platforms/tree_search.rs
similarity index 100%
rename from screenpipe-core/src/operator/tree_search.rs
rename to screenpipe-core/src/operator/platforms/tree_search.rs
diff --git a/screenpipe-core/src/operator/platforms/windows.rs b/screenpipe-core/src/operator/platforms/windows.rs
index f7bf91dbb..bdfaa214b 100644
--- a/screenpipe-core/src/operator/platforms/windows.rs
+++ b/screenpipe-core/src/operator/platforms/windows.rs
@@ -6,7 +6,7 @@ use std::fmt::Debug;
pub struct WindowsEngine;
impl WindowsEngine {
- pub fn new() -> Result<Self, AutomationError> {
+ pub fn new(use_background_apps: bool, activate_app: bool) -> Result<Self, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Windows implementation is not yet available".to_string(),
))
@@ -51,6 +51,16 @@ impl AccessibilityEngine for WindowsEngine {
"Windows implementation is not yet available".to_string(),
))
}
+
+ fn find_element(
+ &self,
+ selector: &Selector,
+ root: Option<&UIElement>,
+ ) -> Result<UIElement, AutomationError> {
+ Err(AutomationError::UnsupportedPlatform(
+ "Windows implementation is not yet available".to_string(),
+ ))
+ }
}
// Placeholder WindowsUIElement that implements UIElementImpl
@@ -145,7 +155,7 @@ impl UIElementImpl for WindowsUIElement {
))
}
- fn get_text(&self) -> Result<String, AutomationError> {
+ fn get_text(&self, max_depth: usize) -> Result<String, AutomationError> {
Err(AutomationError::UnsupportedPlatform(
"Windows implementation is not yet available".to_string(),
))