| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758 |
- @echo off
- chcp 65001 >nul
- echo Installing Newbie Guide Plugin...
- echo.
- REM Check if in Cocos Creator project directory
- if not exist "assets" (
- echo Error: Please run this script in Cocos Creator project root directory
- pause
- exit /b 1
- )
- REM Create plugin directory
- if not exist "assets\NewbieGuidePlugin" (
- mkdir "assets\NewbieGuidePlugin"
- )
- REM Copy plugin files
- echo Copying plugin files...
- if exist "scripts" (
- xcopy /E /Y "scripts" "assets\NewbieGuidePlugin\scripts\" >nul
- echo - scripts copied
- )
- if exist "resources" (
- xcopy /E /Y "resources" "assets\NewbieGuidePlugin\resources\" >nul
- echo - resources copied
- )
- if exist "prefabs" (
- xcopy /E /Y "prefabs" "assets\NewbieGuidePlugin\prefabs\" >nul
- echo - prefabs copied
- )
- if exist "guide_config.json" (
- copy /Y "guide_config.json" "assets\NewbieGuidePlugin\" >nul
- echo - config copied
- )
- REM Copy example files (optional)
- echo.
- set /p install_examples="Install example files? (y/n): "
- if /i "%install_examples%"=="y" (
- if not exist "assets\Examples" (
- mkdir "assets\Examples"
- )
- if exist "examples" (
- xcopy /E /Y "examples" "assets\Examples\NewbieGuideExamples\" >nul
- echo Examples installed to assets/Examples/NewbieGuideExamples/
- )
- )
- echo.
- echo [SUCCESS] Newbie Guide Plugin installed successfully!
- echo.
- echo Documentation:
- echo - README.md (Plugin Overview)
- echo - docs/API_Reference.md (API Reference)
- echo - docs/Integration_Guide.md (Integration Guide)
- echo.
- pause
|