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

Snaps for different architectures #1272

Closed
sagorshkov opened this issue Feb 17, 2017 · 9 comments
Closed

Snaps for different architectures #1272

sagorshkov opened this issue Feb 17, 2017 · 9 comments

Comments

@sagorshkov
Copy link

  • 13.9.0:
  • Linux:

Hello.
Is it possible to build the snap for 32bit under 64bit?
When I'm trying to build with --ia32 on the 64bit Ubuntu I get:
Building for a different target architecture requires a plugin specific implementation in the 'desktop-glib-only' plugin

And also a small issue. When I'm trying to use shell.openExternal to open a link in the default browser it doesn't work. I've tried node modules like this. Don't work too. Do you have any ideas about it?

Thanks in advance.

@develar
Copy link
Member

develar commented Feb 17, 2017

Supported in the latest snapcraft, but not yet on electron-builder side (https://github.com/snapcore/snapcraft/releases/tag/2.26 stage packages). Not sure about desktop-glib-only.

@develar
Copy link
Member

develar commented Feb 17, 2017

When I'm trying to use shell.openExternal to open a link in the default browser it doesn't work

No permissions, I guess. https://snapcraft.io/docs/reference/interfaces browser-support is added by default. No idea what is required. Or maybe some special stage package is required.

@sagorshkov
Copy link
Author

@develar There is something else, I guess. My app works as the server and when I had not added a "network-bind" permissions(didn't add by default) in the logs there was alert log like (please add plug 'network-bind'). But in this case, there are not any logs... Looks like some another cause...

Ok, thanks for your answer. Do you plan to add the possibility to build snaps for both architectures at once?

@develar
Copy link
Member

develar commented Feb 17, 2017

Do you plan to add the possibility to build snaps for both architectures at once?

I doubt that snap can do this, but in any case it will be supported on electron-builder side (arch option for stage packages) as now there is a request. Please note — we ALREADY pass arch flag to snapcraft.

@sagorshkov
Copy link
Author

Also, when I start the span there are these logs in the terminal:

git:(linux) ✗ my-snap
Gtk-Message: Failed to load module "overlay-scrollbar"
Gtk-Message: Failed to load module "gail"
Gtk-Message: Failed to load module "atk-bridge"
Gtk-Message: Failed to load module "unity-gtk-module"
Gtk-Message: Failed to load module "canberra-gtk-module"

@develar
Copy link
Member

develar commented Feb 17, 2017

I have tried to get rid of this in the past but no luck. Bloody Linux weird stuff. Currently, I don't want and don't have time to investigate it. Last time was decided/investigated that it can be safely ignored.

@engelgabriel
Copy link

@develar
Copy link
Member

develar commented Jun 16, 2017

Moved to backlog to keep issue list clear.

@akashnimare
Copy link
Contributor

@develar I also get the same error as mentioned here. I get this error with all the snap packages except Slack so I think there should be a workaround for the same.

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

No branches or pull requests

4 participants