Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Update snapcraft.yaml to use gnome-3-38-2004 #6976

Conversation

eeickmeyer
Copy link

The core18 and plug gnome-3-28-1804 lose standard (free/community) support in less than a year in accordance with the Ubuntu LTS timeline as these both correspond with Ubuntu 18.04 LTS, which loses standard support in April 2023 and moves to paid-only support. To continue to have secure builds for Electron apps, new snap builds should move to core20 and use plug gnome-3-38-2004.

As an added bonus, this will also allow Ubuntu and official Ubuntu flavors to seed Electron snaps built with core20 and gnome-3-38-2004 because gnome-3-38-2004 provides the proper facility for this process.

The core18 and plug gnome-3-28-1804 lose standard (free/community) support in less than a year in accordance with the Ubuntu LTS timeline as these both correspond with Ubuntu 18.04 LTS, which loses standard support in April 2023 and moves to paid-only support. To continue to have secure builds for Electron apps, new snap builds should move to core20 and use plug gnome-3-38-2004.

As an added bonus, this will also allow Ubuntu and official Ubuntu flavors to seed Electron snaps built with core20 and gnome-3-38-2004 because gnome-3-38-2004 provides the proper facility for this process.
@changeset-bot
Copy link

changeset-bot bot commented Jun 30, 2022

🦋 Changeset detected

Latest commit: 7da6b86

The changes in this PR will be included in the next version bump.

This PR includes changesets to release 8 packages
Name Type
app-builder-lib Patch
dmg-builder Patch
electron-builder-squirrel-windows Patch
electron-builder Patch
electron-forge-maker-appimage Patch
electron-forge-maker-nsis-web Patch
electron-forge-maker-nsis Patch
electron-forge-maker-snap Patch

Not sure what this means? Click here to learn what changesets are.

Click here if you're a maintainer who wants to add another changeset to this PR

@netlify
Copy link

netlify bot commented Jun 30, 2022

Deploy Preview for car-park-attendant-cleat-11576 ready!

Name Link
🔨 Latest commit 7da6b86
🔍 Latest deploy log https://app.netlify.com/sites/car-park-attendant-cleat-11576/deploys/62c2682af74a5c00085039ee
😎 Deploy Preview https://deploy-preview-6976--car-park-attendant-cleat-11576.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site settings.

@eeickmeyer eeickmeyer changed the title Update snapcraft.yaml to use gnome-3-38-2004 fix: Update snapcraft.yaml to use gnome-3-38-2004 Jun 30, 2022
@ItzSwirlz
Copy link

ItzSwirlz commented Jun 30, 2022

electron-builder also do other weird things for snap; for example it opens a multipass on arm64 snap builds

@eeickmeyer
Copy link
Author

@ItzSwirlz Perhaps, but that's unrelated to this pull request.

@eeickmeyer
Copy link
Author

I actually now realize that this might not alone do the job. There are several 18.04-based dependencies that are being distributed as well that would need to be updated (as I tried a snap build with just updating the yaml file and the snap wouldn't run). Of course, I could be wrong there as well, but the long and short of it is that 18.04 dependencies should be moved to 20.04 ASAP.

@mmaietta
Copy link
Collaborator

mmaietta commented Jul 4, 2022

What are the 18.04-based dependencies?

@eeickmeyer
Copy link
Author

eeickmeyer commented Jul 4, 2022

What are the 18.04-based dependencies

That would be pretty much everything listed under app: stage:.

Missed section I assumed was a comment but was actually an integral part of this.
@mmaietta
Copy link
Collaborator

mmaietta commented Jul 4, 2022

Oh jeez, I have no idea how one would transition it to 20.04, I'm not familiar with snaps or linux tbh. Happy to review a PR though 🙂

@MikeJerred
Copy link
Contributor

FYI, I am patching this for my electron build, simply changing base: core18 to base: core20 in app-builder-lib/templates/snap/snapcraft.yaml and it seems to work correctly.

@stale
Copy link

stale bot commented Nov 2, 2022

Is this still relevant? If so, what is blocking it? Is there anything you can do to help move it forward?

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs.

@MikeJerred
Copy link
Contributor

Changing the base alone works, but I also need to update the gnome extension to fix bugs e.g. this one: https://forum.snapcraft.io/t/snapped-app-not-loading-fonts-on-fedora-and-arch/12484/116

When I update to gnome-3-38-2004 by doing this:

app-builder-lib/templates/snap/snapcraft.yaml

-base: core18
+base: core20
...
plugs:
- gnome-3-28-1804:
+ gnome-3-38-2004:
    interface: content
    target: $SNAP/gnome-platform
-   default-provider: gnome-3-28-1804
+   default-provider: gnome-3-38-2004

app-builder-lib/out/targets/snap.js

        const appDescriptor = {
+           extensions: ["gnome-3-38"],
            command: "command.sh",
            plugs: plugNames,
            adapter: "none",
        };

The snap will not run, giving errors like:

g_module_open() failed for /snap/.../usr/lib/x86_64-linux-gnu/gdk-pixbuf-2.0/2.10.0/loaders/libpixbufloader-svg.so: librsvg-2.so.2: cannot open shared object file: No such file or directory
/snap/.../usr/lib/x86_64-linux-gnu/libgtk-3-0/gtk-query-immodules-3.0: error while loading shared libraries: libharfbuzz.so.0: cannot open shared object file: No such file or directory

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants