From 4a19c1f431912838473ff244a5ec06450ac5a896 Mon Sep 17 00:00:00 2001 From: Cursor Agent Date: Thu, 16 Apr 2026 16:40:08 +0000 Subject: [PATCH] feat(install): add Linuxbrew option for git-rain on Linux Expose Homebrew/Linuxbrew alongside deb, rpm, and manual for the git-rain Linux install picker, matching git-fire and macOS tap flow. Co-authored-by: Ben Schellenberger --- src/scripts/install-pickers.ts | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/scripts/install-pickers.ts b/src/scripts/install-pickers.ts index e9699de..503038f 100644 --- a/src/scripts/install-pickers.ts +++ b/src/scripts/install-pickers.ts @@ -117,7 +117,7 @@ function orderedLinuxMethodIds(product: ProductId): string[] { if (product === 'git-fire') { return orderPool(fam, ['script', 'deb', 'rpm', 'brew'] as const); } - return orderPool(fam, ['deb', 'rpm', 'manual'] as const); + return orderPool(fam, ['deb', 'rpm', 'brew', 'manual'] as const); } function orderPool(fam: 'deb' | 'rpm' | 'unknown', neutralOrder: readonly T[]): T[] { @@ -227,6 +227,13 @@ function fireLinuxBrew(): { command: string; note: string } { }; } +function rainLinuxBrew(): { command: string; note: string } { + return { + command: 'brew tap git-fire/tap\nbrew install git-rain', + note: 'Homebrew on Linux (Linuxbrew). Same tap as macOS.', + }; +} + function rainLinuxDeb(): { command: string; note: string } { return { command: 'sudo dpkg -i ./git-rain__amd64.deb', @@ -303,6 +310,8 @@ function resolveCommand(product: ProductId, os: OsFamily, methodId: string): { c switch (methodId) { case 'rpm': return rainLinuxRpm(); + case 'brew': + return rainLinuxBrew(); case 'manual': return rainLinuxManual(); case 'deb':