Try to fix Snap. Part 2.
Some checks are pending
Docker / build (push) Waiting to run
Docker Image CI / build (push) Waiting to run
Release Charts / release (push) Waiting to run
Test suite / Meteor tests (push) Waiting to run
Test suite / Coverage report (push) Blocked by required conditions

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-11-02 16:14:45 +02:00
parent 9c7badb0eb
commit 3f2d4444e4
2 changed files with 19 additions and 8 deletions

View file

@ -9,13 +9,24 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
sudo systemctl enable snapd
sudo systemctl start snapd
sudo snap install snapcraft --classic
sudo snap install multipass
# sudo snap install multipass
sudo snap install lxd
lxd init --auto
multipass delete ubu
multipass purge
multipass launch --name ubu
snapcraft pack
# multipass delete ubu
# multipass purge
# multipass launch --name ubu
# snapcraft pack
# Install and initialize LXD (if not already)
sudo snap install lxd --channel=5.21/stable
sudo usermod -aG lxd "$USER"
newgrp lxd
lxd init --minimal
# Build with LXD backend and verbose logs
snapcraft --use-lxd --verbose
# If you hit a stale state, clean and retry:
#snapcraft clean
#snapcraft --use-lxd --verbose
exit;
elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "macOS"