mirror of
https://github.com/wekan/wekan.git
synced 2025-12-16 23:40:13 +01: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
|
- npm
|
||||||
- curl
|
- curl
|
||||||
- execstack
|
- execstack
|
||||||
prepare: |
|
override-build: |
|
||||||
echo "Cleaning environment first"
|
echo "Cleaning environment first"
|
||||||
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
rm -rf ~/.meteor ~/.npm /usr/local/lib/node_modules
|
||||||
# Node Fibers 100% CPU usage issue:
|
# 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
|
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
|
sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
|
||||||
cd ..
|
cd ..
|
||||||
build: |
|
|
||||||
rm -rf package-lock.json .build
|
rm -rf package-lock.json .build
|
||||||
meteor add standard-minifier-js --allow-superuser
|
meteor add standard-minifier-js --allow-superuser
|
||||||
meteor npm install --allow-superuser
|
meteor npm install --allow-superuser
|
||||||
|
|
@ -145,7 +144,6 @@ parts:
|
||||||
cd ../../../../
|
cd ../../../../
|
||||||
npm install
|
npm install
|
||||||
meteor npm install --save bcrypt
|
meteor npm install --save bcrypt
|
||||||
install: |
|
|
||||||
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
|
||||||
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
|
||||||
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue