summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-07-26 10:54:53 +0300
committerLauri Ojansivu <x@xet7.org>2019-07-26 10:54:53 +0300
commit7cf6850cdf77ef51808784e3d275c5be86ff6c92 (patch)
treedba1ff77cf76d10348c3ac8251d4a51954503bf1 /snapcraft.yaml
parent231fee52d26ae1a24d90c6fe120f49a953776809 (diff)
downloadwekan-7cf6850cdf77ef51808784e3d275c5be86ff6c92.tar.gz
wekan-7cf6850cdf77ef51808784e3d275c5be86ff6c92.tar.bz2
wekan-7cf6850cdf77ef51808784e3d275c5be86ff6c92.zip
Try to fix Snap.
Thanks to xet7 !
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml5
1 files changed, 5 insertions, 0 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 81a661ff..a92991ad 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -201,6 +201,11 @@ parts:
meteor npm install --allow-superuser --unsafe-perm
meteor build .build --directory --allow-superuser
cp -f fix-download-unicode/cfs_access-point.txt .build/bundle/programs/server/packages/cfs_access-point.js
+ # Disable code coverage on Snap, because it crashes Wekan starting.
+ # https://github.com/wekan/wekan/issues/2533#issuecomment-513506939
+ # Other option to fix would be to drop indexes at start of snap:
+ # https://stackoverflow.com/questions/24241742/drop-all-indexes-from-all-collections-in-a-mongodb-database-using-the-command-li
+ sed -i 's|Profile(fileInfo.path, func).apply(global, args);|//Profile(fileInfo.path, func).apply(global, args);|g' .build/bundle/programs/server/boot.js
#Removed binary version of bcrypt because of security vulnerability that is not fixed yet.
#https://github.com/wekan/wekan/commit/4b2010213907c61b0e0482ab55abb06f6a668eac
#https://github.com/wekan/wekan/commit/7eeabf14be3c63fae2226e561ef8a0c1390c8d3c