rebuild-release.sh 792 B

12345678910111213141516171819
  1. #!/bin/bash
  2. echo "Note: If you use other locale than en_US.UTF-8 , you need to additionally install en_US.UTF-8"
  3. echo " with 'sudo dpkg-reconfigure locales' , so that MongoDB works correctly."
  4. echo " You can still use any other locale as your main locale."
  5. echo "Building Wekan."
  6. sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
  7. rm -rf node_modules
  8. meteor npm install
  9. rm -rf .build
  10. METEOR_PROFILE=100 meteor build .build --directory
  11. cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
  12. # Remove legacy webbroser bundle, so that Wekan works also at Android Firefox, iOS Safari, etc.
  13. rm -rf .build/bundle/programs/web.browser.legacy
  14. cd .build/bundle/programs/server
  15. rm -rf node_modules
  16. meteor npm install
  17. cd ../../../..