summaryrefslogtreecommitdiffstats
path: root/releases/release-sandstorm.sh
diff options
context:
space:
mode:
authorRomulus Tsai 蔡仲明 <urakagi@gmail.com>2020-05-08 10:13:11 +0800
committerRomulus Tsai 蔡仲明 <urakagi@gmail.com>2020-05-08 10:13:11 +0800
commitc3458855bdb52c976ee6689ad5a0d4e92e96f2e3 (patch)
treed9dbbcc3087b5bfc520710b5f5624a3f4e2b78e6 /releases/release-sandstorm.sh
parent444848876759173ad80203129250d2f0311f30fc (diff)
parentcfcc73724fcd394150d1b815d0a7a4c466e216b5 (diff)
downloadwekan-c3458855bdb52c976ee6689ad5a0d4e92e96f2e3.tar.gz
wekan-c3458855bdb52c976ee6689ad5a0d4e92e96f2e3.tar.bz2
wekan-c3458855bdb52c976ee6689ad5a0d4e92e96f2e3.zip
Merge branch 'master' into lib-change
Diffstat (limited to 'releases/release-sandstorm.sh')
-rwxr-xr-xreleases/release-sandstorm.sh54
1 files changed, 17 insertions, 37 deletions
diff --git a/releases/release-sandstorm.sh b/releases/release-sandstorm.sh
index 2c289194..22e9bef6 100755
--- a/releases/release-sandstorm.sh
+++ b/releases/release-sandstorm.sh
@@ -1,4 +1,4 @@
-# Usage: ./release.sh 1.36
+# Usage: ./release.sh 3.95
# Delete old stuff
#cd ~/repos/wekan
@@ -8,44 +8,24 @@
#cd ~/repos/wekan
#./releases/rebuild-release.sh
+REPODIR=/home/wekan/repos
+WEKANDIR=/home/wekan/repos/wekan
+
+# Ensure sudo access
+sudo echo .
# Build Sandstorm
-cd ~/repos/wekan
-# Use Meteor 1.8.x and Node 8.17.0
-sudo n 8.17.0
-sudo rm -rf /root/.cache/node-gyp/8.17.0
+cd $REPODIR
+rm -rf $WEKANDIR
+git clone git@github.com:wekan/wekan.git
+cd $WEKANDIR
+sudo n 12.16.3
sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
-sudo npm -g uninstall node-gyp node-pre-gyp fibers
-sudo npm -g install node-gyp node-pre-gyp fibers
-./releases/rebuild-release.sh
-rm -rf .build
-mkdir ../sandstorm-build
-cp -pR .meteor ../sandstorm-build/
-cp -pR .snap-meteor-1.8 ../sandstorm-build/
-mv .snap-meteor-1.8/.meteor .
-mv .snap-meteor-1.8/package.json .
-mv .snap-meteor-1.8/package-lock.json .
-# Meteor 1.9.x has changes to Buffer() => Buffer.alloc(), so reverting those
-mv .snap-meteor-1.8/cfs_access-point.txt fix-download-unicode/
-mv .snap-meteor-1.8/export.js models/
-mv .snap-meteor-1.8/wekanCreator.js models/
-mv .snap-meteor-1.8/ldap.js packages/wekan-ldap/server/ldap.js
-mv .snap-meteor-1.8/oidc_server.js packages/wekan-oidc/oidc_server.js
-rm -rf .snap-meteor-1.8
-# Build bundle with Meteor 1.8.x and Node 8.17.0
+# Build Wekan
./releases/rebuild-release.sh
+cd .build/bundle/programs/server
+npm install node-gyp node-pre-gyp fibers
+cd $WEKANDIR
# Build Sandstorm
meteor-spk pack wekan-$1.spk
-spk publish wekan-$1.spk
-scp wekan-$1.spk x2:/var/snap/wekan/common/releases.wekan.team/
-mv wekan-$1.spk ..
-sudo rm -rf .meteor-spk
-# Back to Meteor 1.9 and Node 12.14.1
-sudo n 12.14.1
-sudo rm -rf .meteor
-mv ../sandstorm-build/.meteor .
-mv ../sandstorm-build/.snap-meteor-1.8 .
-rmdir ../sandstorm-build
-# Delete old stuff
-#cd ~/repos/wekan
-#./releases/release-cleanup.sh
-
+#spk publish wekan-$1.spk
+#scp wekan-$1.spk x2:/var/snap/wekan/common/releases.wekan.team/