#!/bin/bash set -ex sudo apt update export PATH=/snap/bin:$PATH # Setup snapd and snapcraft sudo apt install -y snapd sudo snap install --classic snapcraft sudo snap install --classic lxd sudo lxd init --auto # Build our snap! sudo snapcraft --use-lxd