maintainer-make-bundle-s.sh 926 B

123456789101112131415161718192021222324252627282930313233343536373839404142
  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
  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.zip
  27. #wget https://releases.wekan.team/wekan-$1.zip
  28. unzip wekan-$1.zip
  29. cd bundle/programs/server
  30. chmod u+w *.json
  31. cd node_modules/fibers
  32. node build.js
  33. cd ../../../..
  34. find . -type d -name '*-garbage*' | xargs rm -rf
  35. find . -name '*phantom*' | xargs rm -rf
  36. find . -name '.*.swp' | xargs rm -f
  37. find . -name '*.swp' | xargs rm -f
  38. cd ..
  39. zip -r wekan-$1-s390x.zip bundle