-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.sh
More file actions
96 lines (85 loc) · 2.57 KB
/
Copy pathtest.sh
File metadata and controls
96 lines (85 loc) · 2.57 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
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
#!/bin/bash
# BrainPlus Sync - Quick Test Setup Script
echo "============================================================"
echo "BrainPlus Cross-Device Sync - Quick Test Setup"
echo "============================================================"
echo ""
# Check if Node.js is installed
if ! command -v node &> /dev/null; then
echo "❌ Node.js is not installed. Please install Node.js 16+ first."
echo " Download from: https://nodejs.org/"
exit 1
fi
echo "✅ Node.js version: $(node --version)"
echo ""
# Step 1: Install signaling server dependencies
echo "Step 1: Installing signaling server dependencies..."
cd signaling-server
if [ ! -d "node_modules" ]; then
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install signaling server dependencies"
exit 1
fi
fi
echo "✅ Signaling server dependencies installed"
echo ""
# Step 2: Install extension dependencies
echo "Step 2: Installing extension dependencies..."
cd ../extension
if [ ! -d "node_modules" ]; then
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install extension dependencies"
exit 1
fi
fi
echo "✅ Extension dependencies installed"
echo ""
# Step 3: Build extension
echo "Step 3: Building extension..."
npm run build
if [ $? -ne 0 ]; then
echo "❌ Failed to build extension"
exit 1
fi
echo "✅ Extension built successfully"
echo ""
# Step 4: Install native host dependencies
echo "Step 4: Installing native host dependencies..."
cd ../native-host
if [ ! -d "node_modules" ]; then
npm install
if [ $? -ne 0 ]; then
echo "❌ Failed to install native host dependencies"
exit 1
fi
fi
echo "✅ Native host dependencies installed"
echo ""
cd ..
echo "============================================================"
echo "✅ Setup Complete!"
echo "============================================================"
echo ""
echo "Next steps:"
echo ""
echo "1. Start the signaling server:"
echo " cd signaling-server && npm start"
echo ""
echo "2. Load the extension in Chrome:"
echo " - Go to chrome://extensions"
echo " - Enable 'Developer mode'"
echo " - Click 'Load unpacked'"
echo " - Select: $(pwd)/extension/dist"
echo ""
echo "3. Install native host (copy Extension ID first):"
echo " cd native-host"
echo " node install-manifest.js YOUR_EXTENSION_ID"
echo ""
echo "4. Follow the testing guide:"
echo " See TESTING_GUIDE.md for detailed instructions"
echo ""
echo "============================================================"
echo "Happy Testing! 🚀"
echo "============================================================"