wekan/releases/maintainer-make-bundle-s.sh

29 lines
649 B
Bash
Raw Normal View History

#!/bin/bash
# This script is only for Wekan maintainer to
# convert x64 bundle to s390x bundle.
if [ $# -ne 1 ]
then
echo "Syntax with Wekan version number:"
echo " ./maintainer-make-bundle-s.sh 5.10"
exit 1
fi
2021-11-11 21:45:36 +02:00
sudo npm -g install node-gyp
2021-02-08 23:00:35 +02:00
rm -rf bundle
2021-11-11 21:45:36 +02:00
#rm wekan-$1.zip
#wget https://releases.wekan.team/wekan-$1.zip
2021-02-08 23:00:35 +02:00
unzip wekan-$1.zip
2021-11-11 21:45:36 +02:00
cd bundle/programs/server
2021-02-08 23:00:35 +02:00
chmod u+w *.json
2021-11-11 21:45:36 +02:00
cd node_modules/fibers
2021-02-08 23:00:35 +02:00
node build.js
2021-11-11 21:45:36 +02:00
cd ../../../..
2021-02-08 23:00:35 +02:00
find . -type d -name '*-garbage*' | xargs rm -rf
find . -name '*phantom*' | xargs rm -rf
find . -name '.*.swp' | xargs rm -f
find . -name '*.swp' | xargs rm -f
cd ..
zip -r wekan-$1-s390x.zip bundle