summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml23
1 files changed, 16 insertions, 7 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 2dfb3bbb..9c82c6d0 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -1,7 +1,6 @@
name: wekan
-version: 0
-version-script: git describe --dirty --tags | cut -c 2-
-summary: The open-source kanban
+adopt-info: wekan
+summary: The Open-Source kanban
description: |
Wekan is an open-source and collaborative kanban board application.
@@ -81,7 +80,7 @@ parts:
wekan:
source: .
plugin: nodejs
- node-engine: 8.16.0
+ node-engine: 8.16.1
node-packages:
- node-gyp
- node-pre-gyp
@@ -190,7 +189,7 @@ parts:
# git clone --depth 1 -b master --recurse-submodules https://github.com/wekan/markdown.git
# cd ..
#fi
- rm -rf package-lock.json .build
+ rm -rf .build
meteor add standard-minifier-js --allow-superuser
meteor npm install --allow-superuser
meteor npm install --allow-superuser --save babel-runtime
@@ -213,14 +212,24 @@ 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
+ # Delete all .swp files at subdirectories
+ #find $SNAPCRAFT_PART_INSTALL -name \*.swp -type f -delete
+ # 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
-
+ # Wekan version
+ snapcraftctl set-version "$(git describe --dirty --tags | cut -c 2-)"
+ snapcraftctl build
organize:
README: README.wekan
prime: