43 lines
992 B
Batchfile
43 lines
992 B
Batchfile
@echo off
|
|
echo 🎮 Task Challenge Game - Desktop Setup
|
|
echo ======================================
|
|
|
|
:: Check if Node.js is installed
|
|
node --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo ❌ Node.js is not installed. Please install Node.js first:
|
|
echo https://nodejs.org/en/download/
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
:: Check if npm is installed
|
|
npm --version >nul 2>&1
|
|
if errorlevel 1 (
|
|
echo ❌ npm is not installed. Please install npm first.
|
|
pause
|
|
exit /b 1
|
|
)
|
|
|
|
echo ✅ Node.js and npm are installed
|
|
|
|
:: Install dependencies
|
|
echo 📦 Installing dependencies...
|
|
npm install
|
|
|
|
if errorlevel 0 (
|
|
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.
|
|
pause
|
|
) else (
|
|
echo ❌ Failed to install dependencies
|
|
pause
|
|
exit /b 1
|
|
) |