mirror of https://github.com/wekan/wekan
parent
f33c31aa83
commit
e34a284036
@ -1,12 +1,39 @@ |
||||
## Wekan release scripts |
||||
|
||||
Sorry about the mess. I try to cleanup it sometime. |
||||
Release process, for example version 4.94: |
||||
|
||||
1) Build x64 bundle and upload to x2/a/s/o: |
||||
=========================================== |
||||
./release.sh 4.94 |
||||
|
||||
|
||||
2) Build bundles at servers |
||||
=========================== |
||||
arm64: |
||||
ssh a |
||||
./maintainer-make-release-a.sh 4.94 |
||||
|
||||
s390x: |
||||
ssh s |
||||
./maintainer-make-release-s.sh 4.94 |
||||
|
||||
openpower: |
||||
ssh o |
||||
./maintainer-make-release-o.sh 4.94 |
||||
|
||||
|
||||
3) Download bundles and upload to x2 releases: |
||||
============================================== |
||||
./releases/up.sh |
||||
|
||||
4) At x2, do release: |
||||
===================== |
||||
ssh x2 |
||||
cd /var/snap/wekan/common |
||||
./release-x2.sh 4.93 4.94 |
||||
|
||||
I usually use these: |
||||
- release.sh |
||||
- release-sandstorm.sh |
||||
- release-snap.sh |
||||
|
||||
https://github.com/wekan/wekan-snap/wiki/Making-releases-from-source |
||||
|
||||
https://github.com/wekan/wekan-maintainer/wiki/Building-Wekan-for-Sandstorm |
||||
|
||||
|
@ -0,0 +1,4 @@ |
||||
#!/bin/bash |
||||
|
||||
sudo sandstorm stop |
||||
sudo systemctl disable sandstorm |
@ -0,0 +1,13 @@ |
||||
#!/bin/bash |
||||
|
||||
echo "INSTALLING WEKAN SANDSTORM VERSION RELATED FILES:" |
||||
sudo apt-get -y install p7zip-full wget curl |
||||
cd ~ |
||||
wget https://releases.wekan.team/meteor-spk/projects.7z |
||||
7z x projects.7z |
||||
rm projects.7z |
||||
echo "export PATH=$PATH:~/projects/meteor-spk/meteor-spk-0.5.1" >> ~/.bashrc |
||||
source ~/.bashrc |
||||
echo "INSTALL DEV VERSION OF SANDSTORM:" |
||||
curl https://install.sandstorm.io | bash |
||||
cd ~/repos/wekan |
@ -0,0 +1,40 @@ |
||||
#!/bin/bash |
||||
|
||||
# This script is only for Wekan maintainer to |
||||
# convert x64 bundle to arm64 bundle. |
||||
|
||||
cd ~/repos |
||||
rm -rf bundle |
||||
|
||||
unzip wekan-$1.zip |
||||
|
||||
sudo chown wekan:wekan bundle -R |
||||
sudo apt -y install libcurl4-openssl-dev |
||||
|
||||
sudo rm -f /home/wekan/repos/bundle/programs/server/node_modules/.bin/node-pre-gyp |
||||
sudo rm -f /home/wekan/repos/bundle/programs/server/node_modules/.bin/node-gyp |
||||
sudo rm -rf /home/wekan/repos/bundle/programs/server/npm/node_modules/meteor/lucasantoniassi_accounts-lockout/node_modules/.phantomjs-prebuilt-garbage-* |
||||
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/.bin/* |
||||
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/node-pre-gyp/node_modules/.bin/* |
||||
sudo rm -rf /home/wekan/repos/bundle/programs/server/node_modules/node-gyp/node_modules/.bin/* |
||||
sudo rm -rf /home/wekan/repos/bundle/programs/server/npm/node_modules/meteor/ostrio_files/node_modules/request-libcurl/.node_modules-garbage* |
||||
|
||||
cd bundle/programs/server |
||||
chmod u+w *.json |
||||
npm uninstall fibers node-gyp node-pre-gyp |
||||
npm install node-gyp@5.0.4 node-pre-gyp fibers |
||||
npm install |
||||
npm uninstall fibers node-gyp node-pre-gyp |
||||
npm install node-pre-gyp |
||||
npm install fibers |
||||
npm install node-gyp@5.0.4 |
||||
|
||||
cd /home/wekan/repos/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 /home/wekan/repos |
||||
|
||||
zip -r wekan-$1-arm64.zip bundle |
@ -0,0 +1,17 @@ |
||||
cd /home/ubuntu |
||||
rm -rf bundle |
||||
#wget https://releases.wekan.team/wekan-$1.zip |
||||
unzip wekan-$1.zip |
||||
cd /home/ubuntu/bundle/programs/server |
||||
chmod u+w *.json |
||||
cd /home/ubuntu/bundle/programs/server/node_modules/fibers |
||||
node build.js |
||||
cd /home/ubuntu |
||||
cp -pR /home/ubuntu/node-fibers/bin/linux-ppc64-72-glibc bundle/programs/server/node_modules/fibers/bin/ |
||||
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 .. |
||||
zip -r wekan-$1-ppc64le.zip bundle |
@ -0,0 +1,16 @@ |
||||
cd /home/linux1 |
||||
rm -rf bundle |
||||
unzip wekan-$1.zip |
||||
cd /home/linux1/bundle/programs/server |
||||
chmod u+w *.json |
||||
cd /home/linux1/bundle/programs/server/node_modules/fibers |
||||
node build.js |
||||
cd /home/linux1 |
||||
#cp -pR /home/linux1/node-fibers/bin/linux-s390x-83-glibc bundle/programs/server/node_modules/fibers/bin/ |
||||
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 .. |
||||
zip -r wekan-$1-s390x.zip bundle |
@ -0,0 +1,37 @@ |
||||
#!/bin/bash |
||||
|
||||
## Syntax: ./release.sh oldversion newversion |
||||
## Example: ./release.sh 3.87 3.88 |
||||
|
||||
echo "Release: x64" |
||||
cd releases.wekan.team |
||||
mv wekan-$1.zip /data2/old-releases/ |
||||
sha256sum wekan-$2.zip >> SHA256SUMS.txt |
||||
mv SHA256SUMS.txt ../x64-SHA256SUMS.txt |
||||
cat ../x64-SHA256SUMS.txt | grep -v wekan-$1.zip > SHA256SUMS.txt |
||||
cd .. |
||||
|
||||
echo "Release: arm64" |
||||
cd releases.wekan.team/raspi3 |
||||
mv wekan-$1-arm64.zip /data2/old-releases/raspi3/ |
||||
sha256sum wekan-$2-arm64.zip >> SHA256SUMS.txt |
||||
mv SHA256SUMS.txt ../../arm64-SHA256SUMS.txt |
||||
cat ../../arm64-SHA256SUMS.txt | grep -v wekan-$1-arm64.zip > SHA256SUMS.txt |
||||
cd ../.. |
||||
|
||||
echo "Release: s390x" |
||||
cd releases.wekan.team/s390x |
||||
mv wekan-$1-s390x.zip /data2/old-releases/s390x/ |
||||
sha256sum wekan-$2-s390x.zip >> SHA256SUMS.txt |
||||
mv SHA256SUMS.txt ../../s390x-SHA256SUMS.txt |
||||
cat ../../s390x-SHA256SUMS.txt | grep -v wekan-$1-s390x.zip > SHA256SUMS.txt |
||||
cd ../.. |
||||
|
||||
echo "Release: ppc64le" |
||||
cd releases.wekan.team/ppc64le |
||||
mkdir -p /data2/old-releases/ppc64le |
||||
mv wekan-$1-ppc64le.zip /data2/old-releases/ppc64le/ |
||||
sha256sum wekan-$2-ppc64le.zip >> SHA256SUMS.txt |
||||
mv SHA256SUMS.txt ../../ppc64le-SHA256SUMS.txt |
||||
cat ../../ppc64le-SHA256SUMS.txt | grep -v wekan-$1-ppc64le.zip > SHA256SUMS.txt |
||||
cd ../.. |
Loading…
Reference in new issue