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
Remove old libs from ollama for Windows
Neptunec2ea53f2c4e5
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 7fc94ad21..ee00faa35 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -535,6 +535,32 @@ async function installOllamaSidecar() {if (platform === 'windows' && await fs.exists('C:\\ollama\\')) {console.log('ollama sidecar already exists. skipping installation.');await fs.cp('C:\\ollama\\', ollamaDir, { recursive: true });+ // Remove older library versions to save storage+ const libDir = path.join(ollamaDir, 'lib', 'ollama');+ const oldLibs = [+ 'cublas64_11.dll',+ 'cublasLt64_11.dll',+ 'cudart64_110.dll',+ 'ggml_cuda_v11.dll',+ 'rocblas',+ 'rocblas.dll',+ 'ggml_rocm.dll'+ ];++ for (const lib of oldLibs) {+ try {+ const libPath = path.join(libDir, lib);+ const stat = await fs.stat(libPath);+ if (stat.isDirectory()) {+ await fs.rm(libPath, { recursive: true, force: true });+ } else {+ await fs.unlink(libPath);+ }+ console.log(`removed old library: ${lib}`);+ } catch (error) {+ console.warn(`failed to remove ${lib}:`, error.message);+ }+ }return;}@@ -632,4 +658,4 @@ if (action?.includes('--build' || action.includes('--dev'))) {}await $`bun install`await $`bunx tauri ${action.includes('--dev') ? 'dev' : 'build'}`-}\ No newline at end of file+}