summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2019-08-29 19:38:25 +0300
committerLauri Ojansivu <x@xet7.org>2019-08-29 19:38:25 +0300
commitd5403bbfc53390aeaaf68eb452bc24d88f1e0942 (patch)
treecbcf0b459f732f5af81b8a5efa882db5f224b7db /snapcraft.yaml
parent583c36923392362ce751e65073af65260fd93ae9 (diff)
downloadwekan-d5403bbfc53390aeaaf68eb452bc24d88f1e0942.tar.gz
wekan-d5403bbfc53390aeaaf68eb452bc24d88f1e0942.tar.bz2
wekan-d5403bbfc53390aeaaf68eb452bc24d88f1e0942.zip
Snap: Delete all .swp files.
Thanks to xet7 !
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml17
1 files changed, 12 insertions, 5 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 411717a1..12c7ac66 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -213,14 +213,21 @@ parts:
cd ../../../..
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
- rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
+ # Delete phantomjs
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/programs/server/npm/node_modules/meteor/lucasantoniassi_accounts-lockout/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs
- rm -f $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/tar/lib/.mkdir.js.swp
- 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
+ # Delete all .swp files at subdirectories
+ find $SNAPCRAFT_PART_INSTALL -name \*.swp -type f -delete
+ # OLD: Delete each .swp file separately
+ #rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan
+ #rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan/.build/bundle/programs/server/npm/node_modules/tar/lib/.mkdir.js.swp
+ #rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan/.build/bundle/programs/server/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp
+ #rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan/node_modules/tar/lib/.mkdir.js.swp
+ #rm -f $SNAPCRAFT_PART_INSTALL/programs/server/npm/node_modules/tar/lib/.mkdir.js.swp
+ #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
# Meteor 1.8.x additional .swp remove
- rm -f $SNAPCRAFT_PART_INSTALL/programs/server/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp
+ #rm -f $SNAPCRAFT_PART_INSTALL/programs/server/node_modules/node-pre-gyp/node_modules/tar/lib/.mkdir.js.swp
# Wekan version
snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)"
snapcraftctl build