Simple hello world snap
- Change the name in the snapcraft yaml to something like hello-mycoolnickname
- Build with
snapcraft
orsnapcraft --use-lxd
orsnapcraft --destructive-mode
- destructive-mode would be fastest, and not harmful in this case since there are no dependencies installed or changes to the system made
- Install locally with
sudo snap install <hello-mycoolnickname.snap> --dangerous
- dangerous is needed because there is no assertion for the snap yet
- Run the command
- Remove the snap
- Change the snap command
- Publish the snap to the store
- Promote the snap to stable
The build environment can be cleaned with snapcraft clean --destructive-mode
if that mode was used previously.