-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdev.sh
More file actions
executable file
·45 lines (36 loc) · 1.22 KB
/
dev.sh
File metadata and controls
executable file
·45 lines (36 loc) · 1.22 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
#!/bin/bash
# Auto-switch to meeting audio mode for development
echo "🎧 Switching to meeting audio mode..."
if ./scripts/toggle-audio.sh meeting; then
echo "✅ Meeting audio mode activated!"
else
echo "⚠️ Could not switch to meeting mode, continuing anyway..."
fi
# Start both development processes concurrently
echo "Starting frontend dev server on port 5180..."
npm run dev -- --port 5180 &
FRONTEND_PID=$!
echo "Starting electron dev..."
NODE_ENV=development npm run electron:dev &
ELECTRON_PID=$!
echo "Both processes started. Frontend PID: $FRONTEND_PID, Electron PID: $ELECTRON_PID"
echo "Press Ctrl+C to stop both processes"
echo "Logs from both processes will appear below:"
echo "============================================"
# Function to kill both processes on script exit
cleanup() {
echo "Stopping processes..."
kill $FRONTEND_PID 2>/dev/null
kill $ELECTRON_PID 2>/dev/null
echo "🎧 Switching back to normal audio mode..."
if ./scripts/toggle-audio.sh normal; then
echo "✅ Normal audio mode restored!"
else
echo "⚠️ Could not switch back to normal mode"
fi
exit
}
# Set up signal handling
trap cleanup INT TERM
# Wait for both processes
wait