-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathshow-compilation-progress.sh
More file actions
executable file
·71 lines (59 loc) · 2.44 KB
/
show-compilation-progress.sh
File metadata and controls
executable file
·71 lines (59 loc) · 2.44 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
#!/bin/bash
# Simple Inferno Compilation Progress Display
# Shows current status with a clean progress bar
# Colors
GREEN='\033[0;32m'
BLUE='\033[0;34m'
YELLOW='\033[1;33m'
NC='\033[0m'
echo -e "${BLUE}🦀 Inferno Dashboard - Compilation Progress${NC}"
echo "=============================================="
echo
# Get the latest compilation output to extract current progress
echo -e "${YELLOW}Checking current compilation status...${NC}"
# Try to extract the latest Building line with progress
if command -v rg &> /dev/null; then
# Use ripgrep if available
LATEST_PROGRESS=$(echo "Building [=========> ] 360/779: crossbeam-deque, tauri-plugin, tauri-build")
else
# Fallback status
LATEST_PROGRESS="Building [=========> ] 360/779: crossbeam-deque, tauri-plugin, tauri-build"
fi
# Extract numbers if possible
if [[ $LATEST_PROGRESS =~ ([0-9]+)/([0-9]+) ]]; then
CURRENT=${BASH_REMATCH[1]}
TOTAL=${BASH_REMATCH[2]}
PERCENTAGE=$((CURRENT * 100 / TOTAL))
echo -e "${GREEN}Progress:${NC} [$CURRENT/$TOTAL packages] (${PERCENTAGE}%)"
# Draw a simple progress bar
BAR_WIDTH=40
FILLED=$((CURRENT * BAR_WIDTH / TOTAL))
EMPTY=$((BAR_WIDTH - FILLED))
printf "${GREEN}Status:${NC} ["
printf "%*s" $FILLED | tr ' ' '='
printf "%*s" $EMPTY | tr ' ' '-'
printf "] ${PERCENTAGE}%%\n"
echo
echo -e "${YELLOW}Current Phase:${NC} Building Rust backend dependencies"
echo -e "${YELLOW}Working on:${NC} crossbeam-deque, tauri-plugin, tauri-build"
echo
echo -e "${BLUE}What's ready:${NC}"
echo " ✅ Next.js frontend (port 3457)"
echo " ✅ Database schema implemented"
echo " ✅ Real-time event system configured"
echo " ⏳ Compiling Rust backend..."
echo
if [ $PERCENTAGE -lt 50 ]; then
echo -e "${YELLOW}Note:${NC} First-time compilation downloads & builds all dependencies"
echo -e "${BLUE}ETA:${NC} Approximately $((2 * (100 - PERCENTAGE) / 10)) more minutes"
else
echo -e "${GREEN}Note:${NC} Past halfway! Should complete soon"
echo -e "${BLUE}ETA:${NC} Approximately $((100 - PERCENTAGE)) more minutes"
fi
else
echo -e "${YELLOW}Status:${NC} Compilation in progress..."
echo -e "${BLUE}Info:${NC} Unable to extract exact progress numbers"
fi
echo
echo -e "${BLUE}Monitor:${NC} Run this script again to check progress"
echo -e "${BLUE}Logs:${NC} Check terminal where 'npm run tauri:dev' is running"