From b3512b431f75bda03c80f1a3f24e7159920335e9 Mon Sep 17 00:00:00 2001 From: Kyle Spearrin Date: Wed, 13 Mar 2019 00:39:21 -0400 Subject: [PATCH] only install snapcraft if needed --- appveyor.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/appveyor.yml b/appveyor.yml index 838215d346..85b663cb6e 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -11,7 +11,6 @@ stack: node 10 init: - sh: sudo apt-get update - sh: sudo apt-get -y install pkg-config libxss-dev libsecret-1-dev rpm -- sh: sudo snap install snapcraft --classic - ps: | if($isWindows) { Install-Product node 10 @@ -38,6 +37,7 @@ before_build: - sh: | if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ] then + sudo snap install snapcraft --classic echo "$SNAP_TOKEN" | snapcraft login --with - fi - ps: |