wekan/releases/maintainer-make-bundle-s.sh
2022-07-31 04:27:53 +03:00

46 lines
1.1 KiB
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
#
## NEW:
#sudo dnf install gcc python3 npm p7zip
#sudo dnf groupinstall "Development Tools"
#npm -g install n
#
# .bashrc:
# # User specific environment
# PATH="$HOME/.local/bin/bin:$HOME/bin:/usr/local/bin:$PATH"
# export PATH
#
# N_PREFIX="$HOME/.local/bin"
# export N_PREFIX
#
rm -rf bundle
rm wekan-$1-s390x.zip
#rm wekan-$1.zip
#wget https://releases.wekan.team/wekan-$1.zip
7za x wekan-$1.zip
(cd bundle/programs/server && chmod u+w *.json && cd node_modules/fibers && node build.js)
#cd ../../../..
(cd bundle/programs/server/npm/node_modules/meteor/accounts-password && npm remove bcrypt && npm install bcrypt)
cd bundle
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 ..
7za a wekan-$1-s390x.zip bundle