File tree Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Expand file tree Collapse file tree 2 files changed +18
-1
lines changed Original file line number Diff line number Diff 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
2333SCRIPT_DIR=" $( cd " $( dirname " ${BASH_SOURCE[0]} " ) " && pwd) "
2434cd " $SCRIPT_DIR /codequill" || {
@@ -63,6 +73,9 @@ check_remote_codequill() {
6373 fi
6474}
6575
76+ # Start splash screen
77+ splash
78+
6679LOCAL_IP=$( get_local_ip)
6780REMOTE_IP=$( check_remote_codequill $LOCAL_IP )
6881
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
105119 ELECTRON_START_URL=http://$LOCAL_IP :$PORT npm run electron -- --no-sandbox
106120fi
107121
122+ # Close splash screen after start
123+ close_splash
124+
108125print_color " 35" "
109126==========================
110127👋 CodeQuill has stopped 👋
Original file line number Diff line number Diff line change @@ -12,7 +12,7 @@ if ! sudo apt update; then
1212 exit 1
1313fi
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
1818fi
You can’t perform that action at this time.
0 commit comments