From e9c859cc6c47b266433bf2e5a39d16aba63c6184 Mon Sep 17 00:00:00 2001 From: Michael Ludlow Date: Tue, 6 Jan 2026 15:52:25 -0500 Subject: [PATCH] fix(memory): use Homebrew for Ollama installation on macOS (#742) Added macOS-specific branch in getOllamaInstallCommand() to use 'brew install ollama' instead of the Linux-only curl install script. - macOS: now uses 'brew install ollama' (Homebrew) - Linux: continues using 'curl -fsSL https://ollama.com/install.sh | sh' - Windows: unchanged (uses winget) Closes ACS-114 Co-authored-by: Andy <119136210+AndyMik90@users.noreply.github.com> --- .../src/main/ipc-handlers/memory-handlers.ts | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/apps/frontend/src/main/ipc-handlers/memory-handlers.ts b/apps/frontend/src/main/ipc-handlers/memory-handlers.ts index b89c0c46..9ea2b79a 100644 --- a/apps/frontend/src/main/ipc-handlers/memory-handlers.ts +++ b/apps/frontend/src/main/ipc-handlers/memory-handlers.ts @@ -212,7 +212,11 @@ function checkOllamaInstalled(): OllamaInstallStatus { * - Official method per https://winstall.app/apps/Ollama.Ollama * - Winget is pre-installed on Windows 10 (1709+) and Windows 11 * - * macOS/Linux: Uses official install script from https://ollama.com/download + * macOS: Uses Homebrew (most common package manager on macOS) + * - Official method: brew install ollama + * - Reference: https://ollama.com/download/mac + * + * Linux: Uses official install script from https://ollama.com/download * * @returns {string} The install command to run in terminal */ @@ -222,8 +226,13 @@ function getOllamaInstallCommand(): string { // This is an official installation method for Ollama on Windows // Reference: https://winstall.app/apps/Ollama.Ollama return 'winget install --id Ollama.Ollama --accept-source-agreements'; + } else if (process.platform === 'darwin') { + // macOS: Use Homebrew (most widely used package manager on macOS) + // Official Ollama installation method for macOS + // Reference: https://ollama.com/download/mac + return 'brew install ollama'; } else { - // macOS/Linux: Use shell script from official Ollama + // Linux: Use shell script from official Ollama // Reference: https://ollama.com/download return 'curl -fsSL https://ollama.com/install.sh | sh'; }