Updated build scripts.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2022-08-02 00:05:36 +03:00
parent ec2b008552
commit 73ea39466b
2 changed files with 50 additions and 5604 deletions

5647
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -40,15 +40,16 @@ do
#sudo chown -R $(id -u):$(id -g) $HOME/.npm
sudo npm -g install n
sudo n 14.20.0
sudo npm -g install npm
#sudo npm -g install npm
## Latest npm with Meteor 2.2
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
#sudo npm -g install fibers
# Install Meteor, if it's not yet installed
sudo npm install -g meteor --unsafe-perm
sudo npm -g install meteor --unsafe-perm
#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "macOS";
@ -88,8 +89,6 @@ do
#fi
#cd ..
#sudo chown -R $(id -u):$(id -g) $HOME/.npm $HOME/.meteor
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