-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup-dev.bat
More file actions
73 lines (64 loc) · 1.95 KB
/
Copy pathsetup-dev.bat
File metadata and controls
73 lines (64 loc) · 1.95 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
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
@echo off
REM DevStackBox Development Startup Script for Windows
REM This script helps set up the development environment
echo 🚀 Starting DevStackBox Development Environment...
REM Check for Node.js
node --version >nul 2>&1
if errorlevel 1 (
echo ❌ Node.js is not installed. Please install Node.js 18+ first.
exit /b 1
)
REM Check for Rust/Cargo
cargo --version >nul 2>&1
if errorlevel 1 (
echo ❌ Rust/Cargo is not installed. Please install Rust first.
exit /b 1
)
REM Check for package managers
set PACKAGE_MANAGER=
pnpm --version >nul 2>&1
if not errorlevel 1 (
set PACKAGE_MANAGER=pnpm
) else (
npm --version >nul 2>&1
if not errorlevel 1 (
set PACKAGE_MANAGER=npm
) else (
echo ❌ No package manager found. Please install npm or pnpm.
exit /b 1
)
)
echo 📦 Using package manager: %PACKAGE_MANAGER%
REM Install frontend dependencies
echo 📦 Installing frontend dependencies...
%PACKAGE_MANAGER% install
REM Install Tauri CLI if not present
cargo-tauri --version >nul 2>&1
if errorlevel 1 (
echo 🦀 Installing Tauri CLI...
cargo install tauri-cli
)
REM Create necessary directories
echo 📁 Creating directory structure...
if not exist mysql\bin mkdir mysql\bin
if not exist mysql\data mkdir mysql\data
if not exist php\8.2\bin mkdir php\8.2\bin
if not exist php\8.2\ext mkdir php\8.2\ext
if not exist apache\bin mkdir apache\bin
if not exist apache\conf mkdir apache\conf
if not exist phpmyadmin mkdir phpmyadmin
if not exist apps mkdir apps
if not exist config-backups mkdir config-backups
if not exist logs mkdir logs
if not exist www mkdir www
if not exist tmp mkdir tmp
echo ✅ Development environment setup complete!
echo.
echo 🎯 Next steps:
echo 1. Download MySQL binaries to mysql/bin/
echo 2. Download PHP 8.2 binaries to php/8.2/bin/
echo 3. Download phpMyAdmin to phpmyadmin/
echo 4. Run: %PACKAGE_MANAGER% run tauri:dev
echo.
echo 📚 Need help? Check the README.md or GitHub Issues
pause