install.bat 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. @echo off
  2. chcp 65001 >nul
  3. echo Installing Newbie Guide Plugin...
  4. echo.
  5. REM Check if in Cocos Creator project directory
  6. if not exist "assets" (
  7. echo Error: Please run this script in Cocos Creator project root directory
  8. pause
  9. exit /b 1
  10. )
  11. REM Create plugin directory
  12. if not exist "assets\NewbieGuidePlugin" (
  13. mkdir "assets\NewbieGuidePlugin"
  14. )
  15. REM Copy plugin files
  16. echo Copying plugin files...
  17. if exist "scripts" (
  18. xcopy /E /Y "scripts" "assets\NewbieGuidePlugin\scripts\" >nul
  19. echo - scripts copied
  20. )
  21. if exist "resources" (
  22. xcopy /E /Y "resources" "assets\NewbieGuidePlugin\resources\" >nul
  23. echo - resources copied
  24. )
  25. if exist "prefabs" (
  26. xcopy /E /Y "prefabs" "assets\NewbieGuidePlugin\prefabs\" >nul
  27. echo - prefabs copied
  28. )
  29. if exist "guide_config.json" (
  30. copy /Y "guide_config.json" "assets\NewbieGuidePlugin\" >nul
  31. echo - config copied
  32. )
  33. REM Copy example files (optional)
  34. echo.
  35. set /p install_examples="Install example files? (y/n): "
  36. if /i "%install_examples%"=="y" (
  37. if not exist "assets\Examples" (
  38. mkdir "assets\Examples"
  39. )
  40. if exist "examples" (
  41. xcopy /E /Y "examples" "assets\Examples\NewbieGuideExamples\" >nul
  42. echo Examples installed to assets/Examples/NewbieGuideExamples/
  43. )
  44. )
  45. echo.
  46. echo [SUCCESS] Newbie Guide Plugin installed successfully!
  47. echo.
  48. echo Documentation:
  49. echo - README.md (Plugin Overview)
  50. echo - docs/API_Reference.md (API Reference)
  51. echo - docs/Integration_Guide.md (Integration Guide)
  52. echo.
  53. pause