39 lines
1.0 KiB
Bash
39 lines
1.0 KiB
Bash
#!/bin/bash
|
|
# Setup script for Task Challenge Game Desktop Application
|
|
|
|
echo "🎮 Task Challenge Game - Desktop Setup"
|
|
echo "======================================"
|
|
|
|
# Check if Node.js is installed
|
|
if ! command -v node &> /dev/null; then
|
|
echo "❌ Node.js is not installed. Please install Node.js first:"
|
|
echo " https://nodejs.org/en/download/"
|
|
exit 1
|
|
fi
|
|
|
|
# Check if npm is installed
|
|
if ! command -v npm &> /dev/null; then
|
|
echo "❌ npm is not installed. Please install npm first."
|
|
exit 1
|
|
fi
|
|
|
|
echo "✅ Node.js and npm are installed"
|
|
|
|
# Install dependencies
|
|
echo "📦 Installing dependencies..."
|
|
npm install
|
|
|
|
if [ $? -eq 0 ]; then
|
|
echo "✅ Dependencies installed successfully!"
|
|
echo ""
|
|
echo "🚀 Ready to run!"
|
|
echo ""
|
|
echo "Available commands:"
|
|
echo " npm start - Run the desktop application"
|
|
echo " npm run dev - Run with developer tools"
|
|
echo " npm run build - Build executable"
|
|
echo ""
|
|
else
|
|
echo "❌ Failed to install dependencies"
|
|
exit 1
|
|
fi |