1
0
mirror of https://github.com/bitwarden/browser.git synced 2025-02-13 00:51:45 +01:00

install snapd before snapcraft commands

This commit is contained in:
Kyle Spearrin 2020-03-12 23:21:16 -04:00
parent 7bf2f68e4a
commit 619c797673

View File

@ -55,6 +55,8 @@ before_build:
- sh: |
if [ "${SNAP_TOKEN}" != "" -a "${PROD_DEPLOY}" == "true" ]
then
sudo apt-get update
sudo apt-get -y install snapd
sudo snap install snapcraft --classic
echo "$SNAP_TOKEN" | snapcraft login --with -
fi
@ -113,8 +115,6 @@ after_build:
if($env:PROD_DEPLOY -eq "true") {
if($isLinux) {
echo "Deploy Linux..."
sudo apt-get update
sudo apt-get -y install snapd
./scripts/snap-build.ps1 -version $env:PACKAGE_VERSION
sudo snap install ./dist/snap/bw*.snap --dangerous