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
Use preinstalled Ollama for speeding up Windows builds (#647)
Neptune7203a736a61f
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.jsindex 7ca403854..d41d1c701 100644--- a/screenpipe-app-tauri/scripts/pre_build.js+++ b/screenpipe-app-tauri/scripts/pre_build.js@@ -525,7 +525,7 @@ if (platform == 'macos') {// Setup FFMPEGif (!(await fs.exists(config.ffmpegRealname))) {await $`wget --no-config -nc ${config.macos.ffmpegUrl} -O ${config.macos.ffmpegName}.7z`- await $`7z e ${config.macos.ffmpegName}.7z -o ./${config.macos.ffmpegName}`+ await $`7z e ${config.macos.ffmpegName}.7z -o${config.macos.ffmpegName}`await $`mv ${config.macos.ffmpegName} ${config.ffmpegRealname}`await $`rm ${config.macos.ffmpegName}.7z`} else {@@ -533,7 +533,7 @@ if (platform == 'macos') {}// Move and rename ffmpeg and ffprobe binaries- const ffmpegSrc = path.join(cwd, config.ffmpegRealname, 'bin', 'ffmpeg');+ const ffmpegSrc = path.join(cwd, config.ffmpegRealname, 'ffmpeg');// For x86_64await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-x86_64-apple-darwin'));@@ -542,7 +542,6 @@ if (platform == 'macos') {await fs.copyFile(ffmpegSrc, path.join(cwd, 'ffmpeg-aarch64-apple-darwin'));console.log('Moved and renamed ffmpeg binary for externalBin');-}@@ -605,7 +604,6 @@ async function installOllamaSidecar() {throw new Error('Unsupported platform');}-if ((platform === 'macos' && await fs.exists(path.join(ollamaDir, "ollama-aarch64-apple-darwin"))&& await fs.exists(path.join(ollamaDir, "ollama-x86_64-apple-darwin"))) ||(platform !== 'macos' && await fs.exists(path.join(ollamaDir, ollamaExe)))) {@@ -613,6 +611,13 @@ async function installOllamaSidecar() {return;}+ // For our self-hosted runners+ if (platform === 'windows' && await fs.exists('C:\\ollama\\')) {+ console.log('ollama sidecar already exists. skipping installation.');+ await fs.cp('C:\\ollama\\', ollamaDir, {recursive: true});+ return;+ }+try {await fs.mkdir(ollamaDir, { recursive: true });const downloadPath = path.join(ollamaDir, path.basename(ollamaUrl));diff --git a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.jsonindex 03e73e4c1..76601a68c 100644--- a/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json+++ b/screenpipe-app-tauri/src-tauri/tauri.windows.conf.json@@ -6,7 +6,7 @@"ollama"],"resources": {- "ffmpeg\\bin\\x64\\*": "./",+ "ffmpeg\\bin\\*": "./","ffmpeg\\lib\\*": "./","onnxruntime*\\lib\\*.dll": "./","lib\\ollama\\*": "./"