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: catch error on apt-get usage
Wesley Matos7984351dc279
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 5126958e0..66262dca5 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -234,12 +234,16 @@ async function copyFile(src, dest) {/* ########## Linux ########## */if (platform == 'linux') {// Install APT packages- await $`sudo apt-get update`- if (hasFeature('opencl')) {- config.linux.aptPackages.push('libclblast-dev')- }- for (const name of config.linux.aptPackages) {- await $`sudo apt-get install -y ${name}`+ try {+ await $`sudo apt-get update`+ if (hasFeature('opencl')) {+ config.linux.aptPackages.push('libclblast-dev')+ }+ for (const name of config.linux.aptPackages) {+ await $`sudo apt-get install -y ${name}`+ }+ } catch (error) {+ console.error("Error installing apps via apt, %s", error.message);}// Copy screenpipe binary