mirror of
https://github.com/wekan/wekan.git
synced 2026-01-06 01:28:49 +01:00
28 lines
649 B
Bash
Executable file
28 lines
649 B
Bash
Executable file
#!/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
|
|
|
|
sudo npm -g install node-gyp
|
|
rm -rf bundle
|
|
#rm wekan-$1.zip
|
|
#wget https://releases.wekan.team/wekan-$1.zip
|
|
unzip wekan-$1.zip
|
|
cd bundle/programs/server
|
|
chmod u+w *.json
|
|
cd node_modules/fibers
|
|
node build.js
|
|
cd ../../../..
|
|
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
|