瀏覽代碼

docs: add homebrew command for `opencode-desktop` (#5631)

Co-authored-by: opencode-agent[bot] <opencode-agent[bot]@users.noreply.github.com>
Co-authored-by: rekram1-node <[email protected]>
Co-authored-by: Aiden Cline <[email protected]>
Connor Adams 3 月之前
父節點
當前提交
def910021d
共有 2 個文件被更改,包括 22 次插入0 次删除
  1. 16 0
      README.md
  2. 6 0
      packages/console/app/src/routes/download/index.tsx

+ 16 - 0
README.md

@@ -37,6 +37,22 @@ nix run nixpkgs#opencode           # or github:sst/opencode for latest dev branc
 > [!TIP]
 > Remove versions older than 0.1.x before installing.
 
+### Desktop App (BETA)
+
+OpenCode is also available as a desktop application. Download directly from the [releases page](https://github.com/sst/opencode/releases) or [opencode.ai/download](https://opencode.ai/download).
+
+| Platform              | Download                              |
+| --------------------- | ------------------------------------- |
+| macOS (Apple Silicon) | `opencode-desktop-darwin-aarch64.dmg` |
+| macOS (Intel)         | `opencode-desktop-darwin-x64.dmg`     |
+| Windows               | `opencode-desktop-windows-x64.exe`    |
+| Linux                 | `.deb`, `.rpm`, or AppImage           |
+
+```bash
+# macOS (Homebrew)
+brew install --cask opencode-desktop
+```
+
 #### Installation Directory
 
 The install script respects the following priority order for the installation path:

+ 6 - 0
packages/console/app/src/routes/download/index.tsx

@@ -93,6 +93,12 @@ export default function Download() {
               <span>[2]</span> OpenCode Desktop (Beta)
             </div>
             <div data-component="section-content">
+              <button data-component="cli-row" onClick={handleCopyClick("brew install --cask opencode-desktop")}>
+                <code>
+                  brew install --cask <strong>opencode-desktop</strong>
+                </code>
+                <CopyStatus />
+              </button>
               <div data-component="download-row">
                 <div data-component="download-info">
                   <span data-slot="icon">