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
try fix lib linux
Louis Beaumont4256468a1bd8
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex ed2d38496..6e9e93bfd 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -234,17 +234,18 @@ async function copyFile(src, dest) {if (platform == 'linux') {// Install APT packagestry {- await $`sudo apt-get update`+ await $`sudo apt-get update`;for (const name of config.linux.aptPackages) {- await $`sudo apt-get install -y ${name}`+ await $`sudo apt-get install -y ${name}`;}} catch (error) {- console.error("Error installing apps via apt, %s", error.message);+ console.error("error installing apps via apt, %s", error.message);}+// Copy screenpipe binary- console.log('Copying screenpipe binary for Linux...');+ console.log('copying screenpipe binary for linux...');const potentialPaths = [path.join(__dirname, '..', '..', '..', '..', 'target', 'release', 'screenpipe'),path.join(__dirname, '..', '..', '..', '..', 'target', 'x86_64-unknown-linux-gnu', 'release', 'screenpipe'),@@ -276,8 +277,6 @@ if (platform == 'linux') {// uncomment the following line if you want the script to exit on failure// process.exit(1);}--}/* ########## Windows ########## */@@ -597,6 +596,32 @@ async function installOllamaSidecar() {await fs.unlink(downloadPath);}+ if (platform === 'linux') {+ // Remove older library versions to save storage+ const libDir = path.join(ollamaDir, 'lib/ollama');+ const oldLibs = [+ 'libcublas.so.11',+ 'libcublas.so.11.5.1.109',+ 'libcublasLt.so.11',+ 'libcublasLt.so.11.5.1.109',+ 'libcudart.so.11.0',+ 'libcudart.so.11.3.109',+ 'libggml_cuda_v11.so',+ 'libhipblas.so.2',+ 'librocblas.so.4'+ ];++ for (const lib of oldLibs) {+ try {+ await fs.unlink(path.join(libDir, lib));+ console.log(`removed old library: ${lib}`);+ } catch (error) {+ console.warn(`failed to remove ${lib}:`, error.message);+ }+ }++ }+console.log('ollama sidecar installed successfully');} catch (error) {console.error('error installing ollama sidecar:', error);