feat: Minecraft theme overhaul, fix points bug, add history
这个提交包含在:
24
start_adventure.sh
可执行文件
24
start_adventure.sh
可执行文件
@@ -0,0 +1,24 @@
|
||||
#!/bin/bash
|
||||
|
||||
# CSP Adventure Launcher 🚀
|
||||
# Usage: ./start_adventure.sh
|
||||
|
||||
echo "🌲 Loading CSP Minecraft World..."
|
||||
|
||||
if ! command -v npm &> /dev/null; then
|
||||
echo "❌ Error: npm is not installed. Please install Node.js first."
|
||||
exit 1
|
||||
fi
|
||||
|
||||
echo "✨ Installing/Checking dependencies..."
|
||||
cd frontend || { echo "❌ Frontend directory not found!"; exit 1; }
|
||||
|
||||
if [ ! -d "node_modules" ]; then
|
||||
npm install
|
||||
fi
|
||||
|
||||
echo "⚔️ Starting the Adventure on http://localhost:3000"
|
||||
echo " (Press Ctrl+C to stop)"
|
||||
echo ""
|
||||
|
||||
npm run dev
|
||||
在新工单中引用
屏蔽一个用户