summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-04-20 18:30:48 +0300
committerLauri Ojansivu <x@xet7.org>2018-04-20 18:30:48 +0300
commit075ea1c43d827099e0030c750a4c156bd3340fed (patch)
treefa7d25bb479c7eaa1e49d8ff0e18ae32d530b3c2
parent87d2cee02a57a31eff5238fe358e5c2dd5b08d53 (diff)
downloadwekan-075ea1c43d827099e0030c750a4c156bd3340fed.tar.gz
wekan-075ea1c43d827099e0030c750a4c156bd3340fed.tar.bz2
wekan-075ea1c43d827099e0030c750a4c156bd3340fed.zip
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
-rw-r--r--snapcraft.yaml4
1 files changed, 1 insertions, 3 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index cbd2fca2..f81c07e8 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -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