Call for testing: Snapcraft 3.11

Hello Snapcrafters! The Snapcraft team is delighted to announce that version 3.11 is now available.

The snapcraft snap for 3.11 currently available in the candidate channel, to try it out run:

$ sudo snap install --candidate --classic snapcraft

Of, if you already have it installed, to try it out run:

$ sudo snap refresh --candidate snapcraft
2 Likes

One feature of this snapcraft release is the addition of the gnome-3-34 extension. This makes it easier to snap gnome apps as well as providing them with newer libraries (commonly used in gnome apps) than are available in the core18 base snap. A list of the newer libraries can be found in the gnome-3-34 build snap, which is provided to all parts (in a yaml that use the gnome-3-34 extension) at build time.

To try out this extension:

  1. Remove the following plugs (note your app may need other plugs not listed here) since they are automatically provided:
    plugs:
        gtk-3-themes:
            interface: content
            target: $SNAP/data-dir/themes
            default-provider: gtk-common-themes
        icon-themes:
                interface: content
                target: $SNAP/data-dir/icons
                default-provider: gtk-common-themes
        sound-themes:
                interface: content
                target: $SNAP/data-dir/sounds
                default-provider: gtk-common-themes
        platform_snap:
                interface: content
                target: $SNAP/gnome-platform
                default-provider: gnome-3-34-1804
  1. Remove these app plugs (automatically provided):
plugs: [ desktop, desktop-legacy, gsettings, wayland, x11 ]
  1. Remove any part that used the desktop helpers scripts.
  2. Add the extension in the app section like this example:
apps:
    tali:
+       extensions: [gnome-3-34]
        command: desktop-launch tali
  1. Change how the app is run like this example:
apps:
    tali:
        extensions: [gnome-3-34]
-       command: desktop-launch tali
+       command: usr/bin/tali
  1. Remove any build-packages that are listed in the build snap.

Build and enjoy!

4 Likes

Hi thanks for this! I think once it gets promoted it would be nice to reference this post in the documentation at gtk-applications, so that newcomers can use this as well. I think something at the end like:
Update March 2020 - Snapcraft 3.11 and Gnome 3.32 support (linking back here) :blush:

1 Like

There is actually a blog post ready to go out once this snapcraft is in stable. And I plan to use that as the foundation of a new docs page so that users find this info by going to the official snapcraft docs.

1 Like

I’ve converted quite a few snaps to use the gnome-3-34 extension, no issues. I’ve also rebuilt a bunch of the GNOME snaps using gnome-3-28 extension and tested those, all looks fine!

Great work!

1 Like