This repository has been archived on 2026-10-08. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
naps62-yolo ade0d49096 chore(maestro): retarget installer, e2e harness, and docs at unified maestro binary (NAP-245)
- Installer: one `cargo install maestro` instead of two; ExecStart becomes
  `~/.cargo/bin/maestro daemon`; user unit renamed `maestrod.service` →
  `maestro.service`; configure step is `maestro daemon configure`.
- E2E harness: both `Daemon` and `Registry` subprocess wrappers shell out to
  the unified `maestro` binary with the appropriate subcommand.
- State dir: `~/.local/state/maestrod` → `~/.local/state/maestro`.
- Docs: CLAUDE.md repo layout, design spec repo layout + "Daemon (`maestro daemon`)"
  heading, INSTALL.md (full rewrite of CLI references + new thin-builds section).
2026-05-27 10:43:51 +00:00

38 lines
1.2 KiB
Bash
Executable File

#!/bin/sh
# Bootstrap installer for maestro. Builds the `maestro-installer` crate into a
# scratch dir, runs the wizard, and cleans up — leaving only the unified
# `maestro` binary in `~/.cargo/bin`.
#
# Usage:
# curl -sSf https://git.naps.pt/naps62/maestro/raw/branch/main/install.sh | sh
#
# Pass flags through to the wizard with `sh -s --`:
# curl -sSf <...>/install.sh | sh -s -- --yes --no-systemd
#
# Re-run any time to update — `cargo install` overwrites the existing binary.
set -eu
REPO_URL=${MAESTRO_REPO_URL:-https://git.naps.pt/naps62/maestro}
REPO_BRANCH=${MAESTRO_REPO_BRANCH:-}
if ! command -v cargo >/dev/null 2>&1; then
echo "maestro install: \`cargo\` not found on PATH." >&2
echo "Install Rust first: https://rustup.rs" >&2
exit 1
fi
tmpdir=$(mktemp -d 2>/dev/null || mktemp -d -t maestro-install)
trap 'rm -rf "$tmpdir"' EXIT INT TERM
echo "==> building maestro-installer in $tmpdir"
if [ -n "$REPO_BRANCH" ]; then
cargo install --git "$REPO_URL" --branch "$REPO_BRANCH" \
--root "$tmpdir" --locked maestro-installer
else
cargo install --git "$REPO_URL" \
--root "$tmpdir" --locked maestro-installer
fi
exec "$tmpdir/bin/maestro-install" "$@"