#!/usr/bin/env bash
# Run from each built checkout, with its Electron app/backend running on fresh data.
# Set DEMO_DIR to a synthetic workspace shared by both runs.
set -eu
mkdir -p "$DEMO_DIR"
convert -size 3200x1800 gradient:'#116a8b-#a6e1c4' -fill white -draw 'rectangle 300,300 2900,310 rectangle 300,1490 2900,1500 rectangle 1595,300 1605,1500' "$DEMO_DIR/wide.png"
node apps/server/src/bin.ts project add "$DEMO_DIR" --title 'Image resize demo' --base-dir .t3-desktop
# In the app: finish onboarding, open the project draft, hide Thread details,
# open right panel > Files, and double-click wide.png. Leave Fit image selected.
# Run capture.cjs with REPO, URL (Vite origin), BACKEND (unused port), DEBUG
# (unused CDP port), and OUT (capture folder), through headless-desktop.
