mirror of
https://github.com/wekan/wekan.git
synced 2025-04-20 12:07:11 -04:00
Use override-build instead of old deprecated prepare/build/install.
https://github.com/canonical-docs/snappy-docs/blob/master/deprecation-notices/dn7.md Thanks to kyrofa ! Closes wekan/wekan-snap#45
This commit is contained in:
parent
87d2cee02a
commit
075ea1c43d
1 changed files with 1 additions and 3 deletions
|
@ -96,7 +96,7 @@ parts:
|
|||
- npm
|
||||
- curl
|
||||
- execstack
|
||||
prepare: |
|
||||
override-build: |
|
||||
echo "Cleaning environment first"
|
||||
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
||||
# Node Fibers 100% CPU usage issue:
|
||||
|
@ -133,7 +133,6 @@ parts:
|
|||
git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
|
||||
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
||||
cd ..
|
||||
build: |
|
||||
rm -rf package-lock.json .build
|
||||
meteor add standard-minifier-js --allow-superuser
|
||||
meteor npm install --allow-superuser
|
||||
|
@ -145,7 +144,6 @@ parts:
|
|||
cd ../../../../
|
||||
npm install
|
||||
meteor npm install --save bcrypt
|
||||
install: |
|
||||
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
||||
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
||||
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue