rebuild-wekan.bat 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. @ECHO OFF
  2. REM NOTE: You can try this to install Meteor on Windows, it works:
  3. REM https://github.com/zodern/windows-meteor-installer/
  4. REM Installing Meteor with Chocolatey does not currently work.
  5. REM NOTE: THIS .BAT DOES NOT WORK !!
  6. REM Use instead this webpage instructions to build on Windows:
  7. REM https://github.com/wekan/wekan/wiki/Install-Wekan-from-source-on-Windows
  8. REM Please add fix PRs, like config of MongoDB etc.
  9. md C:\repos
  10. cd C:\repos
  11. REM Install chocolatey
  12. @"%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"
  13. choco install -y git curl python2 dotnet4.5.2 nano mongodb-3 mongoclient meteor
  14. curl -O https://nodejs.org/dist/v12.22.1/node-v12.22.1-x64.msi
  15. call node-v12.22.1-x64.msi
  16. call npm config -g set msvs_version 2015
  17. call meteor npm config -g set msvs_version 2015
  18. call npm -g install npm
  19. call npm -g install node-gyp
  20. call npm -g install fibers
  21. cd C:\repos
  22. git clone https://github.com/wekan/wekan.git
  23. cd wekan
  24. git checkout edge
  25. echo "Building Wekan."
  26. REM del /S /F /Q packages
  27. REM ## REPOS BELOW ARE INCLUDED TO WEKAN
  28. REM md packages
  29. REM cd packages
  30. REM git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
  31. REM git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
  32. REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-cas.git
  33. REM git clone --depth 1 -b master https://github.com/wekan/wekan-ldap.git
  34. REM git clone --depth 1 -b master https://github.com/wekan/wekan-scrollbar.git
  35. REM git clone --depth 1 -b master https://github.com/wekan/meteor-accounts-oidc.git
  36. REM git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
  37. REM move meteor-accounts-oidc/packages/switch_accounts-oidc wekan_accounts-oidc
  38. REM move meteor-accounts-oidc/packages/switch_oidc wekan_oidc
  39. REM del /S /F /Q meteor-accounts-oidc
  40. REM sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' ~/repos/wekan/packages/meteor-useraccounts-core/package.js
  41. cd ..
  42. REM del /S /F /Q node_modules
  43. call meteor npm install
  44. REM del /S /F /Q .build
  45. call meteor build .build --directory
  46. copy fix-download-unicode\cfs_access-point.txt .build\bundle\programs\server\packages\cfs_access-point.js
  47. REM ## Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
  48. del /S /F /Q rm .build/bundle/programs/web.browser.legacy
  49. REM ## Install some NPM packages
  50. cd .build\bundle\programs\server
  51. call meteor npm install
  52. REM cd C:\repos\wekan\.meteor\local\build\programs\server
  53. REM del node_modules
  54. cd C:\repos\wekan
  55. call start-wekan.bat