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
fix build (but windows deep link still does not work)
Louis Beaumontff523f7cf853
diff --git a/.github/workflows/release-app.yml b/.github/workflows/release-app.ymlindex b160f1d1f..be652ffa3 100644--- a/.github/workflows/release-app.yml+++ b/.github/workflows/release-app.yml@@ -472,6 +472,8 @@ jobs:env:CN_API_KEY: ${{ secrets.CN_API_KEY }}USER_AGENT: "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36"+ MAX_RETRIES: 3+ RETRY_DELAY: 10run: |# create temp directory for cli$cliDir = Join-Path $Env:GITHUB_WORKSPACE "cn-cli-temp"@@ -486,10 +488,37 @@ jobs:# move to the directory we want to upload fromcd screenpipe-app-tauri/src-tauri- # upload assets+ # upload assets with retry logic$cliFullPath = Join-Path $cliDir "cn.exe"Write-Host "uploading assets from $(pwd) using $cliFullPath..."- & $cliFullPath release upload ${{ secrets.CN_APP_SLUG }} --framework tauri++ $attempt = 1+ $success = $false++ while (-not $success -and $attempt -le $env:MAX_RETRIES) {+ Write-Host "Attempt $attempt of $env:MAX_RETRIES"+ try {+ & $cliFullPath release upload ${{ secrets.CN_APP_SLUG }} --framework tauri+ if ($LASTEXITCODE -eq 0) {+ $success = $true+ Write-Host "Upload successful!"+ } else {+ throw "CLI returned exit code $LASTEXITCODE"+ }+ } catch {+ Write-Host "Error during attempt $attempt`: $_"+ if ($attempt -lt $env:MAX_RETRIES) {+ Write-Host "Waiting $env:RETRY_DELAY seconds before retry..."+ Start-Sleep -Seconds $env:RETRY_DELAY+ }+ }+ $attempt+++ }++ if (-not $success) {+ Write-Host "Failed to upload after $env:MAX_RETRIES attempts"+ exit 1+ }- name: Upload Assets to CrabNebula Cloud (Non-Windows)if: matrix.tauri-args != '--target x86_64-pc-windows-msvc'diff --git a/screenpipe-app-tauri/src-tauri/src/main.rs b/screenpipe-app-tauri/src-tauri/src/main.rsindex a7d2a3830..a107c61d1 100755--- a/screenpipe-app-tauri/src-tauri/src/main.rs+++ b/screenpipe-app-tauri/src-tauri/src/main.rs@@ -502,9 +502,9 @@ async fn main() {info!("deep link URLs: {:?}", urls);});// Register URL scheme on Windows/Linux- #[cfg(any(target_os = "linux"))]+ #[cfg(any(windows, target_os = "linux"))]{- if let Err(err) = app.handle().deep_link().register() {+ if let Err(err) = app.handle().deep_link().register("screenpipe") {error!("Failed to register deep link protocol: {}", err);}}diff --git a/screenpipe-app-tauri/src-tauri/src/sidecar.rs b/screenpipe-app-tauri/src-tauri/src/sidecar.rsindex a6a0267c5..b610c2827 100644--- a/screenpipe-app-tauri/src-tauri/src/sidecar.rs+++ b/screenpipe-app-tauri/src-tauri/src/sidecar.rs@@ -363,12 +363,6 @@ fn spawn_sidecar(app: &tauri::AppHandle) -> Result<CommandChild, String> {.to_path_buf();if cfg!(windows) {- let tessdata_path = exe_dir.join("tessdata");- let mut c = app- .shell()- .sidecar("screenpipe")- .unwrap()- .env("TESSDATA_PREFIX", tessdata_path);if use_chinese_mirror {c = c.env("HF_ENDPOINT", "https://hf-mirror.com");