-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinstall.sh
More file actions
executable file
·58 lines (46 loc) · 2.05 KB
/
Copy pathinstall.sh
File metadata and controls
executable file
·58 lines (46 loc) · 2.05 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/usr/bin/env bash
# fastmaxxing installer — sets up the plaud-sync pipeline (venv + deps + scaffold).
# Idempotent: safe to re-run. The interactive bits it CANNOT do for you
# (Google OAuth, Plaud credentials) are printed at the end.
set -euo pipefail
# Repo root = the directory containing this script.
ROOT="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
PKG="$ROOT/plaud-sync"
cd "$PKG"
echo "▶ fastmaxxing installer"
echo " repo: $ROOT"
# 1. Python 3.11+
command -v python3 >/dev/null 2>&1 || { echo "✗ python3 not found — install Python 3.11+ first."; exit 1; }
PYV="$(python3 -c 'import sys; print("%d.%d" % sys.version_info[:2])')"
PYOK="$(python3 -c 'import sys; print(1 if sys.version_info[:2] >= (3,11) else 0)')"
[ "$PYOK" = "1" ] || { echo "✗ Python $PYV found, but 3.11+ is required."; exit 1; }
echo " python: $PYV ✓"
# 2. venv — MUST be named 'venv', never '.venv'. On macOS a leading-dot dir is
# hidden (UF_HIDDEN) and Python skips its .pth files, silently breaking the
# editable install.
if [ ! -d venv ]; then
echo " creating venv/ ..."
python3 -m venv venv
fi
# shellcheck disable=SC1091
source venv/bin/activate
# 3. Install the package (+ dev extras for the test suite).
echo " installing dependencies (this can take a minute) ..."
pip install --upgrade pip >/dev/null
pip install -e ".[dev]" >/dev/null
echo " package installed ✓"
# 4. Scaffold .env (from .env.example) and the data directories.
plaud-sync init
cat <<EOF
✅ fastmaxxing installed at: $ROOT
Remaining one-time setup (interactive — see README.md Part 1 for the Google steps):
cd "$PKG"
source venv/bin/activate
1. Edit .env → set PLAUD_EMAIL, PLAUD_PASSWORD, PLAUD_API_DOMAIN,
and DRIVE_PARENT_FOLDER_ID
2. Save your Google OAuth client file as: $PKG/credentials.json
3. plaud-sync login # Plaud auth (caches a token)
4. plaud-sync login-drive # Google Drive auth (opens a browser)
5. plaud-sync sync # first run
Then drive it from Claude Code with the /boot skill (.claude/commands/boot.md).
EOF