summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorSam X. Chen <sam.xi.chen@gmail.com>2019-08-10 23:39:12 -0400
committerSam X. Chen <sam.xi.chen@gmail.com>2019-08-10 23:39:12 -0400
commit4857bce5d953ba3299a1de4c1894a96913d4d857 (patch)
treea8ca7378d1a9c38db66de26b00fb04de0aa33993 /snapcraft.yaml
parent16dbbfa98c115bd2eb8fcad09781ee360846ef98 (diff)
downloadwekan-4857bce5d953ba3299a1de4c1894a96913d4d857.tar.gz
wekan-4857bce5d953ba3299a1de4c1894a96913d4d857.tar.bz2
wekan-4857bce5d953ba3299a1de4c1894a96913d4d857.zip
fixing snap build errors due to some rm statements and allowing mixed attachment mode to work in snap
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml10
1 files changed, 6 insertions, 4 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 90feb776..7073aa51 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -201,6 +201,7 @@ parts:
rm -rf package-lock.json .build
meteor add standard-minifier-js --allow-superuser
meteor npm install --allow-superuser
+ meteor npm install --allow-superuser --save babel-runtime
meteor build .build --directory --allow-superuser
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
@@ -214,15 +215,16 @@ parts:
# Change to directory .build/bundle/programs/server
cd .build/bundle/programs/server
npm install
+ npm install --allow-superuser --save babel-runtime
#meteor npm install --save bcrypt
# Change back to Wekan source directory
cd ../../../..
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
- rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
- rm $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
- rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp
- rm $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-gyp/node_modules/tar/lib/.mkdir.js.swp
+ rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
+ rm -f $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
+ rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp
+ rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/node-gyp/node_modules/tar/lib/.mkdir.js.swp
organize:
README: README.wekan
prime: