2021-02-08 23:00:35 +02:00
|
|
|
#!/bin/bash
|
|
|
|
|
|
|
|
# This script is only for Wekan maintainer to
|
|
|
|
# convert x64 bundle to arm64 bundle.
|
|
|
|
|
2021-03-28 19:28:48 +03:00
|
|
|
if [ $# -ne 1 ]
|
|
|
|
then
|
|
|
|
echo "Syntax with Wekan version number:"
|
|
|
|
echo " ./maintainer-make-bundle-a.sh 5.10"
|
|
|
|
exit 1
|
|
|
|
fi
|
|
|
|
|
2021-11-11 21:45:36 +02:00
|
|
|
sudo apt -y install g++ build-essential
|
|
|
|
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
|
|
|
|
cd bundle/programs/server
|
|
|
|
chmod u+w *.json
|
2021-11-11 21:45:36 +02:00
|
|
|
cd node_modules/fibers
|
|
|
|
node build.js
|
|
|
|
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
|
2021-11-11 21:45:36 +02:00
|
|
|
cd ..
|
2021-02-08 23:00:35 +02:00
|
|
|
zip -r wekan-$1-arm64.zip bundle
|