summaryrefslogtreecommitdiffstats
path: root/snapcraft.yaml
diff options
context:
space:
mode:
authorLauri Ojansivu <x@xet7.org>2018-07-30 21:27:22 +0300
committerLauri Ojansivu <x@xet7.org>2018-07-30 21:27:22 +0300
commit5bfb6c6411c928bfffa7ed6fe829f030e3ea57da (patch)
tree56e225b063ad0ff613ba15fa3a184413fc009757 /snapcraft.yaml
parenta48f560a85860451914dbaad8cae6ff5120a0c38 (diff)
downloadwekan-5bfb6c6411c928bfffa7ed6fe829f030e3ea57da.tar.gz
wekan-5bfb6c6411c928bfffa7ed6fe829f030e3ea57da.tar.bz2
wekan-5bfb6c6411c928bfffa7ed6fe829f030e3ea57da.zip
Check for existing directories when building snap.
Diffstat (limited to 'snapcraft.yaml')
-rw-r--r--snapcraft.yaml20
1 files changed, 14 insertions, 6 deletions
diff --git a/snapcraft.yaml b/snapcraft.yaml
index 2ec92f08..1c772f76 100644
--- a/snapcraft.yaml
+++ b/snapcraft.yaml
@@ -128,12 +128,20 @@ parts:
chmod +x install_meteor.sh
sh install_meteor.sh
rm install_meteor.sh
- mkdir -p packages
- cd packages
- git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
- git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
- sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
- cd ..
+ if [ ! -d "packages" ]; then
+ mkdir packages
+ fi
+ if [ ! -d "packages/kadira-flow-router" ]; then
+ cd packages
+ git clone --depth 1 -b master https://github.com/wekan/flow-router.git kadira-flow-router
+ cd ..
+ fi
+ if [ ! -d "packages/meteor-useraccounts-core" ]; then
+ cd packages
+ git clone --depth 1 -b master https://github.com/meteor-useraccounts/core.git meteor-useraccounts-core
+ sed -i 's/api\.versionsFrom/\/\/api.versionsFrom/' meteor-useraccounts-core/package.js
+ cd ..
+ fi
rm -rf package-lock.json .build
meteor add standard-minifier-js --allow-superuser
meteor npm install --allow-superuser