From a4ff6cc0af8545ca4d3e97fa2cabbe7981c025b2 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Thu, 13 Feb 2020 20:04:18 -0500 Subject: Update Sandstorm release build script. --- releases/release-sandstorm.sh | 69 +++++++++++++++++++++++++------------------ 1 file changed, 41 insertions(+), 28 deletions(-) (limited to 'releases/release-sandstorm.sh') diff --git a/releases/release-sandstorm.sh b/releases/release-sandstorm.sh index 2c289194..48d784c5 100755 --- a/releases/release-sandstorm.sh +++ b/releases/release-sandstorm.sh @@ -8,43 +8,56 @@ #cd ~/repos/wekan #./releases/rebuild-release.sh +REPODIR=/home/wekan/repos +WEKANDIR=/home/wekan/repos/wekan +OLDDIR=/home/wekan/repos/sandstorm-build +METEDIR=/home/wekan/repos/wekan/.snap-meteor-1.8 + +# Ensure sudo access +sudo echo . # Build Sandstorm -cd ~/repos/wekan +cd $REPODIR +rm -rf $WEKANDIR +git clone git@github.com:wekan/wekan.git +cd $WEKANDIR # 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 +#sudo rm -rf /root/.cache/node-gyp/8.17.0 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 . +#sudo npm -g uninstall node-gyp node-pre-gyp fibers +#./releases/rebuild-release.sh +rm -rf $OLDDIR +mkdir $OLDDIR +mv .meteor $OLDDIR/ +cp -pR .snap-meteor-1.8 $OLDDIR/ +mv $METEDIR/.meteor . +mv $METEDIR/package.json . +mv $METEDIR/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 +mv $METEDIR/cfs_access-point.txt fix-download-unicode/ +mv $METEDIR/export.js models/ +mv $METEDIR/wekanCreator.js models/ +mv $METEDIR/ldap.js packages/wekan-ldap/server/ldap.js +mv $METEDIR/oidc_server.js packages/wekan-oidc/oidc_server.js +rm -rf $METEDIR +# Build Wekan ./releases/rebuild-release.sh +# Build bundle with Meteor 1.8.x and Node 8.17.0 +cd .build/bundle/programs/server +npm install node-gyp node-pre-gyp fibers@2.0.0 +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 +#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 +#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 -- cgit v1.2.3-1-g7c22 From 0f95a513bf8c092d7166a521586333eb2fe8788d Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 17 Mar 2020 14:02:43 +0200 Subject: Meteor 1.8 only in use at Sandstorm. --- releases/release-sandstorm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'releases/release-sandstorm.sh') diff --git a/releases/release-sandstorm.sh b/releases/release-sandstorm.sh index 48d784c5..997e46c4 100755 --- a/releases/release-sandstorm.sh +++ b/releases/release-sandstorm.sh @@ -11,7 +11,7 @@ REPODIR=/home/wekan/repos WEKANDIR=/home/wekan/repos/wekan OLDDIR=/home/wekan/repos/sandstorm-build -METEDIR=/home/wekan/repos/wekan/.snap-meteor-1.8 +METEDIR=/home/wekan/repos/wekan/.sandstorm-meteor-1.8 # Ensure sudo access sudo echo . -- cgit v1.2.3-1-g7c22 From c5f782976b971fa3f2323e80a013bbf6a49c0596 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Mon, 13 Apr 2020 10:55:00 -0400 Subject: Update Sandstorm release script for newest Meteor and Node 12.x --- releases/release-sandstorm.sh | 39 +++------------------------------------ 1 file changed, 3 insertions(+), 36 deletions(-) (limited to 'releases/release-sandstorm.sh') diff --git a/releases/release-sandstorm.sh b/releases/release-sandstorm.sh index 997e46c4..9bf32bf5 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 @@ -10,8 +10,6 @@ REPODIR=/home/wekan/repos WEKANDIR=/home/wekan/repos/wekan -OLDDIR=/home/wekan/repos/sandstorm-build -METEDIR=/home/wekan/repos/wekan/.sandstorm-meteor-1.8 # Ensure sudo access sudo echo . @@ -20,45 +18,14 @@ cd $REPODIR rm -rf $WEKANDIR git clone git@github.com:wekan/wekan.git cd $WEKANDIR -# 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 +sudo n 12.16.2 sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp -#sudo npm -g uninstall node-gyp node-pre-gyp fibers -#./releases/rebuild-release.sh -rm -rf $OLDDIR -mkdir $OLDDIR -mv .meteor $OLDDIR/ -cp -pR .snap-meteor-1.8 $OLDDIR/ -mv $METEDIR/.meteor . -mv $METEDIR/package.json . -mv $METEDIR/package-lock.json . -# Meteor 1.9.x has changes to Buffer() => Buffer.alloc(), so reverting those -mv $METEDIR/cfs_access-point.txt fix-download-unicode/ -mv $METEDIR/export.js models/ -mv $METEDIR/wekanCreator.js models/ -mv $METEDIR/ldap.js packages/wekan-ldap/server/ldap.js -mv $METEDIR/oidc_server.js packages/wekan-oidc/oidc_server.js -rm -rf $METEDIR # Build Wekan ./releases/rebuild-release.sh -# Build bundle with Meteor 1.8.x and Node 8.17.0 cd .build/bundle/programs/server -npm install node-gyp node-pre-gyp fibers@2.0.0 +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 - -- cgit v1.2.3-1-g7c22 From 1d89e96dd101c11913f1acdd6d16b5650eaf18a7 Mon Sep 17 00:00:00 2001 From: Lauri Ojansivu Date: Tue, 28 Apr 2020 18:58:01 +0300 Subject: Upgrade to Node v12.16.3 Thanks to Node developers and xet7 ! --- releases/release-sandstorm.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'releases/release-sandstorm.sh') diff --git a/releases/release-sandstorm.sh b/releases/release-sandstorm.sh index 9bf32bf5..22e9bef6 100755 --- a/releases/release-sandstorm.sh +++ b/releases/release-sandstorm.sh @@ -18,7 +18,7 @@ cd $REPODIR rm -rf $WEKANDIR git clone git@github.com:wekan/wekan.git cd $WEKANDIR -sudo n 12.16.2 +sudo n 12.16.3 sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp # Build Wekan ./releases/rebuild-release.sh -- cgit v1.2.3-1-g7c22