ソースを参照

Update release scripts.

Thanks to xet7 !
Lauri Ojansivu 2 年 前
コミット
86d6d2d19a
3 ファイル変更5563 行追加5 行削除
  1. 5553 1
      package-lock.json
  2. 9 4
      rebuild-wekan.sh
  3. 1 0
      start-wekan.sh

ファイルの差分が大きいため隠しています
+ 5553 - 1
package-lock.json


+ 9 - 4
rebuild-wekan.sh

@@ -24,7 +24,7 @@ do
 		if [[ "$OSTYPE" == "linux-gnu" ]]; then
 			echo "Linux";
 			# Debian, Ubuntu, Mint
-			sudo apt-get install -y build-essential gcc g++ make git curl wget p7zip-full zip unzip unp npm
+			sudo apt install -y build-essential gcc g++ make git curl wget p7zip-full zip unzip unp npm p7zip-full
 			#curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
 			#sudo apt-get install -y nodejs
 			#sudo apt-get install -y npm
@@ -42,7 +42,8 @@ do
 			sudo n 14.20.0
 			#sudo npm -g install npm
 			## Latest npm with Meteor 2.2
-			sudo npm -g install node-gyp
+			sudo npm -g uninstall node-pre-gyp
+			sudo npm -g install @mapbox/node-pre-gyp
 			# Latest fibers for Meteor 2.2
 			#sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
 			sudo npm -g install fibers
@@ -87,18 +88,22 @@ do
 		#fi
 		#cd ..
 		#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
-		rm -rf node_modules .meteor/local .build
-                chmod u+w *.json
+		npm -g uninstall node-pre-gyp
+		npm -g install @mapbox/node-pre-gyp
+		rm -rf .build/bundle node_modules .meteor/local .build
 		meteor npm install
 		meteor build .build --directory
 		rm -rf .build/bundle/programs/web.browser.legacy
 		(cd .build/bundle/programs/server && rm -rf node_modules && chmod u+w *.json && meteor npm install)
                 (cd .build/bundle/programs/server/node_modules/fibers && node build.js)
+		(cd .build/bundle/programs/server/npm/node_modules/meteor/accounts-password && meteor npm remove bcrypt && meteor npm install bcrypt)
 		# Cleanup
+		cd .build/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 ../..
 		# Add fibers multi arch
 		#cd .build/bundle/programs/server/node_modules/fibers/bin
 		#curl https://releases.wekan.team/fibers-multi.7z -o fibers-multi.7z

+ 1 - 0
start-wekan.sh

@@ -512,6 +512,7 @@
       # Add more Node heap:
       export NODE_OPTIONS="--max_old_space_size=4096"
       # Add more stack:
+      #bash -c "ulimit -s 65500; exec node --stack-size=65500 --trace-deprecation main.js"
       bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
       #node main.js
       #---------------------------------------------------------------------

この差分においてかなりの量のファイルが変更されているため、一部のファイルを表示していません