chore: configure eslint and update gitignore
This commit is contained in:
38
install.bat
Normal file
38
install.bat
Normal file
@@ -0,0 +1,38 @@
|
||||
@echo off
|
||||
echo ==========================================
|
||||
echo 2FA ACCOUNT TOOL - Setup Utility
|
||||
echo ==========================================
|
||||
echo.
|
||||
|
||||
:: Check for Node.js
|
||||
node -v >nul 2>&1
|
||||
if %errorlevel% neq 0 (
|
||||
echo [ERROR] Node.js is not installed!
|
||||
echo Please download and install Node.js from https://nodejs.org/
|
||||
pause
|
||||
exit /b
|
||||
)
|
||||
|
||||
echo [1/2] Cleaning up old installation files...
|
||||
if exist node_modules (
|
||||
rd /s /q node_modules
|
||||
)
|
||||
|
||||
echo [2/2] Installing dependencies (npm install)...
|
||||
call npm install
|
||||
|
||||
if %errorlevel% neq 0 (
|
||||
echo.
|
||||
echo [ERROR] Dependency installation failed.
|
||||
echo Please check your internet connection.
|
||||
pause
|
||||
exit /b
|
||||
)
|
||||
|
||||
echo.
|
||||
echo ==========================================
|
||||
echo SETUP SUCCESSFUL!
|
||||
echo You can now run 'start.vbs' to launch.
|
||||
echo ==========================================
|
||||
echo.
|
||||
pause
|
||||
Reference in New Issue
Block a user