How to sideload my own/snapcraft example app?

Just trying snappy for the first time, wanting to develop an app but would obviously want to test it before pushing it to the app store. I've been through the snapcraft tutorial but once you've created a snap how do you get it into a snappy machine?

I've seen posts about 'sideloading'(?) apps but can't work out how?

As a start - how would I load one of the snapcraft example apps into my KVM snappy instance? (one of the ones not in the app store)

Thanks!

2 Answers

Note that as you probably haven't signed your snap you will probably have to run:

sudo snap install /path_to_yoursnap/snapname.snap 

after the scp

You can also try a snappy-remote install, which should look like this:

snappy-remote --url=ssh://ubuntu@ install snapname.snap

Once you build the snap either using snappy build or snapcraft, sideloading is simply the process of installing your snap without going through the store (exactly what you're trying to do). An analog to this in the Debian packaging world would be installing a .deb via dpkg instead of using apt-get.

If you have SSH enabled on your KVM instance, use scp to transfer the generated .snap over. Once you're there, simply run sudo snap install /path/to/my.snap on the KVM instance, and you just sideloaded it. You'll see it now if you run snappy list.

0

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like