rebuild-wekan.bat 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. @ECHO OFF
  2. REM NOTE: THIS .BAT DOES NOT WORK !!
  3. REM Use instead this webpage instructions to build on Windows:
  4. REM https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows
  5. REM Please add fix PRs, like config of MongoDB etc.
  6. md C:\repos
  7. cd C:\repos
  8. REM Install chocolatey
  9. @"%SystemRoot%\System32\WindowsPowerShell\v1.0\powershell.exe" -NoProfile -InputFormat None -ExecutionPolicy Bypass -Command "iex ((New-Object System.Net.WebClient).DownloadString('https://chocolatey.org/install.ps1'))" && SET "PATH=%PATH%;%ALLUSERSPROFILE%\chocolatey\bin"
  10. choco install -y git curl python2 dotnet4.5.2 nano mongodb-3 mongoclient meteor
  11. curl -O https://nodejs.org/dist/v8.12.0/node-v8.12.0-x64.msi
  12. call node-v8.12.0-x64.msi
  13. call npm config -g set msvs_version 2015
  14. call meteor npm config -g set msvs_version 2015
  15. call npm -g install npm
  16. call npm -g install node-gyp
  17. call npm -g install [email protected]
  18. cd C:\repos
  19. git clone https://github.com/wekan/wekan.git
  20. cd wekan
  21. git checkout edge
  22. echo "Building Wekan."
  23. REM del /S /F /Q packages
  24. REM ## REPOS BELOW ARE INCLUDED TO WEKAN
  25. REM md packages
  26. REM cd packages
  27. REM git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
  28. REM git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
  29. REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git
  30. REM git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
  31. REM git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
  32. REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
  33. REM git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
  34. REM move meteor-accounts-oidc/packages/switch_accounts-oidc wekan_accounts-oidc
  35. REM move meteor-accounts-oidc/packages/switch_oidc wekan_oidc
  36. REM del /S /F /Q meteor-accounts-oidc
  37. REM sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
  38. cd ..
  39. REM del /S /F /Q node_modules
  40. call meteor npm install
  41. REM del /S /F /Q .build
  42. call meteor build .build --directory
  43. copy fix-download-unicode\cfs_access-point.txt .build\bundle\programs\server\packages\cfs_access-point.js
  44. cd .build\bundle\programs\server
  45. call meteor npm install
  46. REM cd C:\repos\wekan\.meteor\local\build\programs\server
  47. REM del node_modules
  48. cd C:\repos\wekan
  49. call start-wekan.bat