-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathstart.command
More file actions
executable file
·48 lines (41 loc) · 1.42 KB
/
Copy pathstart.command
File metadata and controls
executable file
·48 lines (41 loc) · 1.42 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
#!/bin/bash
# ─────────────────────────────────────────
# Odylic Studio — Double-click to launch
# ─────────────────────────────────────────
cd "$(dirname "$0")"
echo ""
echo " ╔═══════════════════════════════╗"
echo " ║ Odylic Studio ║"
echo " ╚═══════════════════════════════╝"
echo ""
# Check for Node.js
if ! command -v node &> /dev/null; then
echo " Node.js is required but not installed."
echo ""
echo " Download it from: https://nodejs.org"
echo ""
echo " Press any key to open the download page..."
read -n 1 -s
open "https://nodejs.org"
exit 1
fi
NODE_VERSION=$(node -v)
echo " Node.js $NODE_VERSION found"
# Install dependencies on first run
if [ ! -d "node_modules" ]; then
echo ""
echo " First launch — installing dependencies..."
echo " (This may take a minute)"
echo ""
npm install
echo ""
fi
echo ""
echo " Starting Odylic Studio..."
echo " Opening http://localhost:3000 in your browser..."
echo ""
echo " Press Ctrl+C to stop the server."
echo ""
# Open browser after a short delay, then start server (blocks)
(sleep 2 && open "http://localhost:3000") &
npm run dev