Skip to content

Commit 1f3d181

Browse files
New splash screen
1 parent 87348e7 commit 1f3d181

File tree

2 files changed

+18
-1
lines changed

2 files changed

+18
-1
lines changed

.device_scripts/start.sh

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,16 @@ print_color "35" "
1919
==========================
2020
"
2121

22+
# Show splash screen (using yad, zenity, or a similar tool)
23+
splash() {
24+
yad --text="Starting CodeQuill..." --center --no-buttons --timeout=60 --width=300 --height=100 --title="Loading" --text-align=center &
25+
SPLASH_PID=$!
26+
}
27+
28+
close_splash() {
29+
kill $SPLASH_PID
30+
}
31+
2232
# Change to the CodeQuill directory
2333
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
2434
cd "$SCRIPT_DIR/codequill" || {
@@ -63,6 +73,9 @@ check_remote_codequill() {
6373
fi
6474
}
6575

76+
# Start splash screen
77+
splash
78+
6679
LOCAL_IP=$(get_local_ip)
6780
REMOTE_IP=$(check_remote_codequill $LOCAL_IP)
6881

@@ -75,6 +88,7 @@ else
7588
print_step "The .next directory is missing. Running 'next build'..."
7689
npm run build
7790
if [ $? -ne 0 ]; then
91+
close_splash
7892
print_color "31" "❌ Build failed. Please check for errors and try again."
7993
exit 1
8094
fi
@@ -105,6 +119,9 @@ else
105119
ELECTRON_START_URL=http://$LOCAL_IP:$PORT npm run electron -- --no-sandbox
106120
fi
107121

122+
# Close splash screen after start
123+
close_splash
124+
108125
print_color "35" "
109126
==========================
110127
👋 CodeQuill has stopped 👋

codequill_app.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ if ! sudo apt update; then
1212
exit 1
1313
fi
1414

15-
if ! sudo apt install -y curl nodejs npm git; then
15+
if ! sudo apt install -y curl nodejs npm git yad; then
1616
echo -e "${RED}Failed to install packages${NC}"
1717
exit 1
1818
fi

0 commit comments

Comments
 (0)