build-bundle-ppc64el.sh 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839
  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 p7zip-full
  11. sudo npm -g uninstall node-pre-gyp
  12. sudo npm -g install @mapbox/node-pre-gyp
  13. rm -rf bundle
  14. rm wekan-$1-ppc64le.zip
  15. 7z x wekan-$1-amd64.zip
  16. (cd bundle/programs/server && chmod u+w *.json && cd node_modules/fibers && node build.js)
  17. #cd ../../../..
  18. # Requires building from source https://github.com/meteor/meteor/issues/11682
  19. (cd bundle/programs/server/npm/node_modules/meteor/accounts-password && npm rebuild --build-from-source)
  20. cd bundle
  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. (cd bundle/programs/server/npm/node_modules/meteor/accounts-password && npm remove bcrypt && npm install bcrypt)
  27. 7z a wekan-$1-ppc64le.zip bundle
  28. sudo snap start juju-db
  29. ./start-wekan.sh