build-bundle-s390x.sh 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  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. #
  12. ## NEW:
  13. #sudo dnf install gcc python3 npm p7zip
  14. #sudo dnf groupinstall "Development Tools"
  15. #npm -g install n
  16. #
  17. # .bashrc:
  18. # # User specific environment
  19. # PATH="$HOME/.local/bin/bin:$HOME/bin:/usr/local/bin:$PATH"
  20. # export PATH
  21. #
  22. # N_PREFIX="$HOME/.local/bin"
  23. # export N_PREFIX
  24. #
  25. rm -rf bundle
  26. rm wekan-$1-s390x.zip
  27. #rm wekan-$1.zip
  28. #wget https://releases.wekan.team/wekan-$1-amd64.zip
  29. 7za x wekan-$1-amd64.zip
  30. (cd bundle/programs/server && chmod u+w *.json && cd node_modules/fibers && node build.js)
  31. #cd ../../../..
  32. #(cd bundle/programs/server/npm/node_modules/meteor/accounts-password && npm remove bcrypt && npm install bcrypt)
  33. # Requires building from source https://github.com/meteor/meteor/issues/11682
  34. (cd bundle/programs/server/npm/node_modules/meteor/accounts-password && npm rebuild --build-from-source)
  35. cd bundle
  36. find . -type d -name '*-garbage*' | xargs rm -rf
  37. find . -name '*phantom*' | xargs rm -rf
  38. find . -name '.*.swp' | xargs rm -f
  39. find . -name '*.swp' | xargs rm -f
  40. cd ..
  41. 7za a wekan-$1-s390x.zip bundle
  42. sudo snap start juju-db
  43. ./start-wekan.sh