Building the snap on Linux


#1

Now that you have a snapcraft.yaml describing how to assemble your app and dependencies, you can build a snap.

First, install snap support by following the appropriate guide for your distribution. Next, install snapcraft, the command-line tool for building snaps:

sudo snap install snapcraft --classic

Return to the root directory of the project containing your snapcraft.yaml and run snapcraft:

snapcraft

If the snap build completes successfully, you will find a .snap file in the same directory that you ran the snapcraft command. You can inspect its contents to ensure it contains all of your application’s assets:

unsquashfs -l *.snap

Next steps

Continue on to learn how to install, test, and publish your snap file.


Building the snap
Proposed new documentation outline