-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathinstall.sh
More file actions
39 lines (33 loc) · 1.1 KB
/
Copy pathinstall.sh
File metadata and controls
39 lines (33 loc) · 1.1 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
#!/bin/bash
set -e
SCRIPT_DIR="$(cd "$(dirname "$0")" && pwd)"
echo "================================================"
echo " QuartoReview Desktop - First-time setup"
echo "================================================"
echo ""
# Check that Node.js is installed
if ! command -v node &>/dev/null; then
echo "ERROR: Node.js is not installed."
echo ""
echo "Please install Node.js from: https://nodejs.org"
echo "Choose the LTS version."
echo "Then run this script again."
exit 1
fi
echo "Node.js found: $(node --version)"
echo ""
cd "$SCRIPT_DIR"
echo "Installing desktop, backend, and frontend dependencies..."
npm run install:all
echo ""
echo "================================================"
echo " Installation complete!"
echo "================================================"
echo ""
echo "Next step: run ./start.sh once."
echo "The desktop app will create a template config file in:"
echo " ~/Library/Application Support/QuartoReview/.env"
echo "Fill that file with either a GitHub token or OAuth credentials."
echo ""
echo "Then run ./start.sh again to launch the desktop app."
echo ""