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
Bump app to v2.4.174 — fix(windows-build): drop reqwest from screenpipe-audio build.rs — release-app
Louis Beaumontcda00aae3a22
diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock b/apps/screenpipe-app-tauri/src-tauri/Cargo.lockindex e3999970a..1e9779a5a 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.lock+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.lock@@ -9972,7 +9972,7 @@ dependencies = [[[package]]name = "screenpipe-app"-version = "2.4.173"+version = "2.4.174"dependencies = ["aes","anyhow",diff --git a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml b/apps/screenpipe-app-tauri/src-tauri/Cargo.tomlindex 7a408bb7c..9dc3a3b31 100644--- a/apps/screenpipe-app-tauri/src-tauri/Cargo.toml+++ b/apps/screenpipe-app-tauri/src-tauri/Cargo.toml@@ -1,6 +1,6 @@[package]name = "screenpipe-app"-version = "2.4.173"+version = "2.4.174"description = "24/7 memory for your desktop. 100% local."authors = ["you"]license = ""diff --git a/crates/screenpipe-audio/Cargo.toml b/crates/screenpipe-audio/Cargo.tomlindex 0a797f743..1e83ddb99 100644--- a/crates/screenpipe-audio/Cargo.toml+++ b/crates/screenpipe-audio/Cargo.toml@@ -10,7 +10,6 @@ edition = { workspace = true }# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html[build-dependencies]-reqwest = { workspace = true }which = "7.0.0"[dependencies]diff --git a/crates/screenpipe-audio/build.rs b/crates/screenpipe-audio/build.rsindex 2862f1543..b68abf574 100644--- a/crates/screenpipe-audio/build.rs+++ b/crates/screenpipe-audio/build.rs@@ -81,8 +81,6 @@ fn find_unzip() -> Option<std::path::PathBuf> {#[cfg(target_os = "windows")]fn install_onnxruntime() {- use reqwest::blocking::Client;- use std::time::Duration;use std::{path::Path, process::Command};// Use CPU-only onnxruntime — GPU (DirectML) causes issues on Intel integrated GPUs.@@ -102,19 +100,29 @@ fn install_onnxruntime() {};let target_dir = Path::new("../../apps/screenpipe-app-tauri/src-tauri").join(pkg_name);- // Skip download if already present (CI pre-downloads via workflow step)+ // Skip download if already present (CI pre-downloads via release-app.yml /+ // release-cli.yml workflow steps; local Windows devs hit the curl path).+ //+ // Why not reqwest: reqwest 0.13's `rustls` feature pulls aws-lc-sys, whose+ // C objects reference `__builtin_bswap{16,32,64}` — GCC intrinsics MSVC+ // doesn't understand. Linking *this* build script binary therefore fails+ // with LNK2001 unresolved external. The screenpipe-app crate works around+ // it with a bswap_shim.c, but that shim is only linked into the final+ // binary, not into per-crate build scripts. Curl is universally present+ // on every CI runner image and on Win10+ by default, so calling it from+ // Command keeps the build script free of any TLS dep.if !target_dir.join("lib").join("onnxruntime.lib").exists() {let url = format!("https://github.com/microsoft/onnxruntime/releases/download/v1.19.2/{}",zip_name);- let client = Client::builder()- .timeout(Duration::from_secs(300))- .build()- .expect("failed to build client");- let resp = client.get(&url).send().expect("request failed");- let body = resp.bytes().expect("body invalid");- fs::write(zip_name, &body).expect("failed to write");+ let status = Command::new("curl")+ .args(["-fsSL", "--retry", "3", "-o", zip_name, &url])+ .status()+ .expect("failed to execute curl");+ if !status.success() {+ panic!("failed to download onnx binary via curl");+ }let unzip_path = find_unzip().expect("could not find unzip executable - please install it via GnuWin32 or add it to PATH",);