maintainer-make-bundle-s.sh 649 B

12345678910111213141516171819202122232425262728
  1. #!/bin/bash
  2. # This script is only for Wekan maintainer to
  3. # convert x64 bundle to s390x bundle.
  4. if [ $# -ne 1 ]
  5. then
  6. echo "Syntax with Wekan version number:"
  7. echo " ./maintainer-make-bundle-s.sh 5.10"
  8. exit 1
  9. fi
  10. sudo npm -g install node-gyp
  11. rm -rf bundle
  12. #rm wekan-$1.zip
  13. #wget https://releases.wekan.team/wekan-$1.zip
  14. unzip wekan-$1.zip
  15. cd bundle/programs/server
  16. chmod u+w *.json
  17. cd node_modules/fibers
  18. node build.js
  19. cd ../../../..
  20. find . -type d -name '*-garbage*' | xargs rm -rf
  21. find . -name '*phantom*' | xargs rm -rf
  22. find . -name '.*.swp' | xargs rm -f
  23. find . -name '*.swp' | xargs rm -f
  24. cd ..
  25. zip -r wekan-$1-s390x.zip bundle