You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
787 B

преди 3 години
  1. @echo off
  2. :: Change directory to etherpad-lite root
  3. cd /D "%~dp0\.."
  4. :: Is node installed?
  5. cmd /C node -e "" || ( echo "Please install node.js ( https://nodejs.org )" && exit /B 1 )
  6. echo _
  7. echo Ensure that all dependencies are up to date... If this is the first time you have run Etherpad please be patient.
  8. mkdir node_modules
  9. cd /D node_modules
  10. mklink /D "ep_etherpad-lite" "..\src"
  11. cd /D "ep_etherpad-lite"
  12. cmd /C npm ci || exit /B 1
  13. cd /D "%~dp0\.."
  14. echo _
  15. echo Clearing cache...
  16. del /S var\minified*
  17. echo _
  18. echo Setting up settings.json...
  19. IF NOT EXIST settings.json (
  20. echo Can't find settings.json.
  21. echo Copying settings.json.template...
  22. cmd /C copy settings.json.template settings.json || exit /B 1
  23. )
  24. echo _
  25. echo Installed Etherpad! To run Etherpad type start.bat