/ linuxy / scripts / build-snap.sh
Swadhin Biswas Ci/improve release notes (#41) · 8/28/2026
04d550f
23 lines · 503 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/bash
set -e

echo "=== Building Linuxy Snap Package ==="

# Check for snapcraft
if ! command -v snapcraft &> /dev/null; then
    echo "snapcraft is not installed. Install it with:"
    echo "  sudo apt install snapcraft"
    echo "  or"
    echo "  sudo snap install snapcraft --classic"
    exit 1
fi

cd "$(dirname "$0")/.."

echo "Building snap package..."
snapcraft --use-lxd 2>&1

echo ""
echo "=== Snap build complete ==="
echo "Install with: sudo snap install ./linuxy_*.snap --dangerous"