Try to fix Snap.

This commit is contained in:
Lauri Ojansivu 2020-01-14 19:43:25 +02:00
parent 0009c4c650
commit 1159199e90

View file

@ -105,8 +105,6 @@ parts:
- npm - npm
stage-packages: stage-packages:
- libfontconfig1 - libfontconfig1
- libssl1.0.0
- libcurl3
override-build: | 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
@ -128,7 +126,6 @@ parts:
# Change back to Wekan source directory # Change back to Wekan source directory
cd ../../../.. cd ../../../..
cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/ cp -r .build/bundle/* $SNAPCRAFT_PART_INSTALL/
rm -rf $SNAPCRFT_PART_INSTALL/bin
cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/ cp .build/bundle/.node_version.txt $SNAPCRAFT_PART_INSTALL/
rm -f $SNAPCRAFT_PART_INSTALL/lib/node_modules/wekan 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/programs/server/npm/node_modules/meteor/rajit_bootstrap3-datepicker/lib/bootstrap-datepicker/node_modules/phantomjs-prebuilt/lib/phantom/bin/phantomjs