rebuild-wekan.bat 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  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-4 mongoclient
  14. curl -O https://nodejs.org/dist/v12.22.10/node-v12.22.10-x64.msi
  15. call node-v12.22.10-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 meteor
  20. call npm -g install node-gyp
  21. call npm -g install fibers
  22. cd C:\repos
  23. git clone https://github.com/wekan/wekan.git
  24. cd wekan
  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. REM ## Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
  47. del /S /F /Q rm .build/bundle/programs/web.browser.legacy
  48. REM ## Install some NPM packages
  49. cd .build\bundle\programs\server
  50. call meteor npm install
  51. REM cd C:\repos\wekan\.meteor\local\build\programs\server
  52. REM del node_modules
  53. cd C:\repos\wekan
  54. call start-wekan.bat