Skip to content

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

fix: build

Louis Beaumont258e9733530e
diff --git a/screenpipe-app-tauri/scripts/pre_build.js b/screenpipe-app-tauri/scripts/pre_build.js
index e1364a6e3..590d98520 100644
--- a/screenpipe-app-tauri/scripts/pre_build.js
+++ b/screenpipe-app-tauri/scripts/pre_build.js
@@ -660,18 +660,20 @@ if (process.env.GITHUB_ENV) {
// Modify the installOllamaSidecar function
async function installOllamaSidecar() {
- const arch = process.arch;
const ollamaDir = path.join(__dirname, '..', 'src-tauri');
const ollamaVersion = 'v0.3.13';
- let ollamaExe;
+ let ollamaExe, ollamaUrl;
if (platform === 'windows') {
ollamaExe = 'ollama-x86_64-pc-windows-msvc.exe';
+ ollamaUrl = `https://github.com/ollama/ollama/releases/download/${ollamaVersion}/ollama-windows-amd64.zip`;
} else if (platform === 'macos') {
- ollamaExe = process.arch === 'arm64' ? 'ollama-aarch64-apple-darwin' : 'ollama-x86_64-apple-darwin';
+ ollamaExe = 'ollama-darwin';
+ ollamaUrl = `https://github.com/ollama/ollama/releases/download/${ollamaVersion}/ollama-darwin`;
} else if (platform === 'linux') {
ollamaExe = 'ollama-x86_64-unknown-linux-gnu';
+ ollamaUrl = `https://github.com/ollama/ollama/releases/download/${ollamaVersion}/ollama-linux-amd64`;
} else {
throw new Error('Unsupported platform');
}
@@ -739,4 +741,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