1
0
mirror of https://github.com/bitwarden/browser.git synced 2024-09-12 01:48:21 +02:00

only install snapcraft if needed

This commit is contained in:
Kyle Spearrin 2019-03-13 00:39:21 -04:00
parent 62f654cf86
commit b3512b431f

View File

@ -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: |