mirror of
https://github.com/wekan/wekan.git
synced 2026-03-05 05:10:15 +01:00
Update release scripts.
Thanks to xet7 !
This commit is contained in:
parent
26f8df2995
commit
86d6d2d19a
3 changed files with 5617 additions and 65 deletions
5668
package-lock.json
generated
5668
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -24,7 +24,7 @@ do
|
||||||
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
if [[ "$OSTYPE" == "linux-gnu" ]]; then
|
||||||
echo "Linux";
|
echo "Linux";
|
||||||
# Debian, Ubuntu, Mint
|
# 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 -
|
#curl -fsSL https://deb.nodesource.com/setup_14.x | sudo -E bash -
|
||||||
#sudo apt-get install -y nodejs
|
#sudo apt-get install -y nodejs
|
||||||
#sudo apt-get install -y npm
|
#sudo apt-get install -y npm
|
||||||
|
|
@ -42,7 +42,8 @@ do
|
||||||
sudo n 14.20.0
|
sudo n 14.20.0
|
||||||
#sudo npm -g install npm
|
#sudo npm -g install npm
|
||||||
## Latest npm with Meteor 2.2
|
## 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
|
# Latest fibers for Meteor 2.2
|
||||||
#sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
|
#sudo mkdir -p /usr/local/lib/node_modules/fibers/.node-gyp
|
||||||
sudo npm -g install fibers
|
sudo npm -g install fibers
|
||||||
|
|
@ -87,18 +88,22 @@ do
|
||||||
#fi
|
#fi
|
||||||
#cd ..
|
#cd ..
|
||||||
#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
|
#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
|
||||||
rm -rf node_modules .meteor/local .build
|
npm -g uninstall node-pre-gyp
|
||||||
chmod u+w *.json
|
npm -g install @mapbox/node-pre-gyp
|
||||||
|
rm -rf .build/bundle node_modules .meteor/local .build
|
||||||
meteor npm install
|
meteor npm install
|
||||||
meteor build .build --directory
|
meteor build .build --directory
|
||||||
rm -rf .build/bundle/programs/web.browser.legacy
|
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 && 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/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
|
# Cleanup
|
||||||
|
cd .build/bundle
|
||||||
find . -type d -name '*-garbage*' | xargs rm -rf
|
find . -type d -name '*-garbage*' | xargs rm -rf
|
||||||
find . -name '*phantom*' | xargs rm -rf
|
find . -name '*phantom*' | xargs rm -rf
|
||||||
find . -name '.*.swp' | xargs rm -f
|
find . -name '.*.swp' | xargs rm -f
|
||||||
find . -name '*.swp' | xargs rm -f
|
find . -name '*.swp' | xargs rm -f
|
||||||
|
cd ../..
|
||||||
# Add fibers multi arch
|
# Add fibers multi arch
|
||||||
#cd .build/bundle/programs/server/node_modules/fibers/bin
|
#cd .build/bundle/programs/server/node_modules/fibers/bin
|
||||||
#curl https://releases.wekan.team/fibers-multi.7z -o fibers-multi.7z
|
#curl https://releases.wekan.team/fibers-multi.7z -o fibers-multi.7z
|
||||||
|
|
|
||||||
|
|
@ -512,6 +512,7 @@
|
||||||
# Add more Node heap:
|
# Add more Node heap:
|
||||||
export NODE_OPTIONS="--max_old_space_size=4096"
|
export NODE_OPTIONS="--max_old_space_size=4096"
|
||||||
# Add more stack:
|
# 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"
|
bash -c "ulimit -s 65500; exec node --stack-size=65500 main.js"
|
||||||
#node main.js
|
#node main.js
|
||||||
#---------------------------------------------------------------------
|
#---------------------------------------------------------------------
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue