diff --git a/README.md b/README.md index fc844e8..755483f 100644 --- a/README.md +++ b/README.md @@ -10,7 +10,22 @@ Collaborator is an end-to-end environment for agentic development. Terminals, co The app is early-stage and in active development. macOS only for now. -**[Download the latest release](https://github.com/collaborator-ai/collab-public/releases/latest)** +## Install + +**[Download the latest release](https://github.com/collaborator-ai/collab-public/releases/latest)** (macOS, Apple Silicon) + +Or install from the command line: + +```sh +curl -fsSL https://raw.githubusercontent.com/collaborator-ai/collab-public/main/install.sh | bash +``` + +## Quickstart + +1. Open Collaborator +2. Add a workspace — click the workspace dropdown in the navigator and choose "Add workspace", or press Cmd+Shift+O, then select a local folder +3. Double-click the canvas to create a terminal, and start an agent +4. Drag files from the navigator onto the canvas to open them as tiles alongside your running agents *** diff --git a/install.sh b/install.sh new file mode 100755 index 0000000..60f183d --- /dev/null +++ b/install.sh @@ -0,0 +1,29 @@ +#!/bin/bash +set -euo pipefail + +REPO="collaborator-ai/collab-public" +INSTALL_DIR="/Applications" +TMP_DIR=$(mktemp -d) + +cleanup() { rm -rf "$TMP_DIR"; } +trap cleanup EXIT + +echo "Fetching latest release..." +ZIP_URL=$(curl -fsSL "https://api.github.com/repos/${REPO}/releases/latest" \ + | grep -o '"browser_download_url": *"[^"]*arm64-mac\.zip"' \ + | head -1 \ + | cut -d'"' -f4) + +if [ -z "$ZIP_URL" ]; then + echo "Error: could not find a macOS ARM64 zip in the latest release." >&2 + exit 1 +fi + +echo "Downloading $(basename "$ZIP_URL")..." +curl -fSL --progress-bar "$ZIP_URL" -o "$TMP_DIR/Collaborator.zip" + +echo "Installing to ${INSTALL_DIR}..." +ditto -xk "$TMP_DIR/Collaborator.zip" "$INSTALL_DIR" + +echo "Done. Opening Collaborator..." +open "$INSTALL_DIR/Collaborator.app"