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>
This commit is contained in:
Michael Ludlow
2026-01-06 15:52:25 -05:00
committed by GitHub
parent 7fda36ad2e
commit e9c859cc6c
@@ -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';
}