#!/usr/bin/env bash # Brush — native Apple Silicon 3DGS trainer (prebuilt v0.3.0 binary). No auth. set -euo pipefail cd "$(dirname "$0")/.." mkdir -p bin && cd bin URL="https://github.com/ArthurBrussee/brush/releases/download/v0.3.0/brush-app-aarch64-apple-darwin.tar.xz" echo "[brush] downloading $URL" curl -fL -o brush-app.tar.xz "$URL" tar -xf brush-app.tar.xz rm -f brush-app.tar.xz # the tarball unpacks to brush-app-aarch64-apple-darwin/brush_app xattr -dr com.apple.quarantine ./brush-app-aarch64-apple-darwin 2>/dev/null || true chmod +x ./brush-app-aarch64-apple-darwin/brush_app 2>/dev/null || true ln -sf brush-app-aarch64-apple-darwin/brush_app ./brush echo "[brush] installed: $(pwd)/brush -> $(readlink ./brush)" echo "[brush] done"