maintainer-make-bundle-o.sh 693 B

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