build-bundle-win64.bat 911 B

123456789101112131415161718192021222324252627282930313233343536373839
  1. @ECHO OFF
  2. IF [%1] == [] GOTO usage
  3. ECHO 1) Deleting old bundle
  4. CALL DEL /F /S /Q bundle
  5. ECHO 2) Downloading new WeKan.zip
  6. CALL DEL wekan-%1.zip
  7. CALL wget https://releases.wekan.team/wekan-%1.zip
  8. ECHO 3) Unarchiving new WeKan
  9. CALL 7z x wekan-%1.zip
  10. ECHO 4) Reinstalling bcrypt
  11. CD bundle\programs\server\npm\node_modules\meteor\accounts-password
  12. REM CALL npm remove bcrypt
  13. REM CALL npm install bcrypt
  14. REM # Requires building from source https://github.com/meteor/meteor/issues/11682
  15. CALL npm rebuild --build-from-source
  16. CD ..\..\..\..\..\..\..
  17. ECHO 5) Packing new WeKan.zip
  18. CALL DEL wekan-%1-amd64-windows.zip
  19. CALL 7z a wekan-%1-amd64-windows.zip bundle
  20. ECHO 6) Copying WeKan.zip to sync directory
  21. CALL COPY wekan-%1-amd64-windows.zip ..\win2016\
  22. ECHO 7) Done. Starting WeKan.
  23. CALL start-wekan.bat
  24. GOTO :eof
  25. :usage
  26. ECHO Usage: build-windows.bat VERSION-NUMBER
  27. ECHO Example: build-windows.bat 5.00
  28. :eof