Building the snap on Mac
Now that you have a snapcraft.yaml describing how to assemble your app and dependencies, you can build a snap.
Snapcraft, the command-line tool for building snaps, is distributed using Homebrew on the Mac. Be sure to install Homebrew before continuing.
Next, install snapcraft:
brew install snapcraft
Return to the root directory of the project containing your snapcraft.yaml and run 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
Continue on to learn how to install, test, and publish your snap file.
Last updated 4 years ago.