c0bra / deviceframe

:iphone: Put device frames around your mobile/web/progressive app screenshots.
Other
580 stars 16 forks source link

Add support for building a snap of dframe #19

Closed popey closed 5 years ago

popey commented 5 years ago

I created a snap package of deviceframe so it can be featured in the Snap Store, which is a cross-distribution app-store for Linux. Once in the store, it can be easily installed via ‘snap install’ or via GNOME Software or KDE Discover on most distros.

A single snap (built for many architectures) in the Snap Store will be installable on numerous popular Linux distributions with no changes. It’ll also be discoverable via the Snap Store, where releases are under your control.

Given the command is ‘dframe’ I configured the yaml to use that as the snap name and exposed the command under the same name. If you’d prefer we could use the full ‘deviceframe’ name for the snap, and request an ‘alias’ in the store, which would expose the command as ‘dframe’.

If you're willing to publish this under the dframe project name, you just need to create an account and then register the dframe name.

A snap file created by snapcraft (our free software tool for building snaps) can then be released in the Snap Store with snap push --release stable *.snap. You'll want to install snapcraft (brew install snapcraft, snap install snapcraft, or apt install snapcraft) and login (snapcraft login) first, though.

You may also want to consider using https://build.snapcraft.io/ which is a free build service, that can create armhf, amd64, i386, arm64 and other builds of dframe, and push them to the store automatically. Alternatively it’s possible to integrate publishing the snap via your existing travis CI / release process.

I appreciate you may not be aware of snaps and snapcraft, and I’d of course be happy to answer any questions you may have.

c0bra commented 5 years ago

I'm open to this but had never heard of Snaps before I read this issue. Would I be correct in thinking it's in the same vein as homebrew and chocolatey?

popey commented 5 years ago

Sorry for the delay in getting back to you, I missed the notification.

Yes, exactly, you can think of snaps as analogous to apk's on Android. Always up to date, delivered via a store directly from the upstream developer. I did a 10-minute lightning talk recently which might help illustrate some of the benefits easily.

c0bra commented 5 years ago

@popey sorry this has taken so long, but it's finally done and waiting for review.