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: powershell
Louis Beaumontfb7c96b6e2a6
diff --git a/install.ps1 b/install.ps1index 2baaa1ec8..f6fab5354 100644--- a/install.ps1+++ b/install.ps1@@ -1,19 +1,26 @@-# Check if running as administrator-if (-NOT ([Security.Principal.WindowsPrincipal][Security.Principal.WindowsIdentity]::GetCurrent()).IsInRole([Security.Principal.WindowsBuiltInRole] "Administrator")) {- Write-Warning "please run as administrator!"-}-Write-Host "installing screenpipe..."try {# Get latest version- $version = (Invoke-RestMethod "https://api.github.com/repos/mediar-ai/screenpipe/releases/latest").tag_name- $url = "https://github.com/mediar-ai/screenpipe/releases/download/$version/screenpipe-$version-x86_64-pc-windows-msvc.zip"+ $releases = Invoke-RestMethod "https://api.github.com/repos/mediar-ai/screenpipe/releases"+ $latestRelease = $releases | Where-Object { -not $_.prerelease } | Select-Object -First 1+ if (-not $latestRelease) {+ throw "No releases found"+ }++ # Find the Windows asset+ $asset = $latestRelease.assets | Where-Object { $_.name -like "*-x86_64-pc-windows-msvc.zip" } | Select-Object -First 1+ if (-not $asset) {+ throw "No Windows release found in version $($latestRelease.tag_name)"+ }++ $url = $asset.browser_download_url+$installDir = "$env:USERPROFILE\screenpipe"$tempZip = "$env:TEMP\screenpipe.zip"# Download and extract- Write-Host "downloading latest version ($version)..."+ Write-Host "downloading latest version ($($latestRelease.tag_name)) from $url..."Invoke-WebRequest -Uri $url -OutFile $tempZip# Create install directory if it doesn't exist@@ -34,8 +41,8 @@ try {# CleanupRemove-Item $tempZip -Force- # Write-Host "screenpipe installed successfully! restart your terminal and run 'screenpipe'"+ Write-Host "screenpipe installed successfully! restart your terminal and run 'screenpipe'" -ForegroundColor Green} catch {- $errorMessage = $_.Exception.Message- # Write-Host "installation failed: $errorMessage" -ForegroundColor Red+ Write-Host "installation failed: $($_.Exception.Message)" -ForegroundColor Red+ exit 1}\ No newline at end of file