Skip to content

Commit 580b79b

Browse files
danmrichardsclaude
andcommitted
feat(install): prefer Homebrew on macOS, fix README brew command
install.sh now tries `brew install --cask runware/tap/runware` first on macOS, falling back to the binary download only when Homebrew is not found. Update README to use the correct one-liner (adds --cask, removes the separate brew tap step). Co-Authored-By: Claude Sonnet 4.6 (1M context) <noreply@anthropic.com>
1 parent 52fe827 commit 580b79b

2 files changed

Lines changed: 13 additions & 2 deletions

File tree

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@ A command-line tool for interacting with the [Runware](https://runware.ai) infer
77
### Homebrew (macOS)
88

99
```shell
10-
brew tap runware/tap
11-
brew install runware
10+
brew install --cask runware/tap/runware
1211
```
1312

1413
### Scoop (Windows)

public/install.sh

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,18 @@ case "$ARCH" in
2525
;;
2626
esac
2727

28+
if [ "$OS" = "darwin" ]; then
29+
if command -v brew >/dev/null 2>&1; then
30+
echo "==> 🍺 Homebrew detected — installing via brew (recommended for macOS)..."
31+
brew install --cask runware/tap/runware
32+
exit 0
33+
else
34+
echo "==> ⚠️ Homebrew not found. Falling back to direct binary download."
35+
echo " To install Homebrew: https://brew.sh"
36+
echo ""
37+
fi
38+
fi
39+
2840
echo "==> 🔍 Detected OS: $OS, Architecture: $ARCH"
2941

3042
echo "==> 🌐 Fetching latest version..."

0 commit comments

Comments
 (0)