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

Create a snap for ubuntu #652

Open
turt2live opened this issue May 29, 2018 · 22 comments
Open

Create a snap for ubuntu #652

turt2live opened this issue May 29, 2018 · 22 comments

Comments

@turt2live
Copy link
Member

turt2live commented May 29, 2018

https://github.com/snapcrafters may be of help

@uhoreg
Copy link
Member

uhoreg commented May 29, 2018

@popey
Copy link

popey commented Aug 7, 2018

Hey hey! I understand riot is an electron app, right? We have a blog post which details how easy it is to get a snap built.
I'd love to help with this.

@kristbaum
Copy link

element-hq/element-web#5868 is related

@Joshndroid
Copy link

They closed the pull request March 31 citing not wanting to create another distribution. People need to make noise in issue in order for them to reconsider. Here's some noise

@aaronraimist
Copy link
Contributor

Just adding a note here to say that @popey has gone ahead and created an unofficial snap

https://twitter.com/popey/status/1133884378143166464
https://snapcraft.io/riot-web

@cyberpunkedu
Copy link

I tried the snap from the snapstore on Ubuntu 20.04.
It launches only on first install. After closing the app it doesn't open again.
The signal-desktop snap had the same problem, but now that seems fixed.

@stephenjudge
Copy link

stephenjudge commented Jul 17, 2020

I brought up the question of the possibility of an official Snapcraft build of Element Desktop in the Matrix chatroom, before I knew of this issue. There were many useful discussion points made that can be followed from this message:

https://matrix.to/#/!YTvKGNlinIzlkMTVRl:matrix.org/$1EL-t25jkkFRY_nmF3tTioeC5YWV16YD68lrizebDfo

@stephenjudge
Copy link

I tried the snap from the snapstore on Ubuntu 20.04.
It launches only on first install. After closing the app it doesn't open again.
The signal-desktop snap had the same problem, but now that seems fixed.

I am using the snap build on Xubuntu 18.04.4 LTS and is working fine. Obviously I can't say about 20.04 but as it's also an LTS I can't imagine why it would stop working.

@abitrolly
Copy link

@popey the instructions from https://snapcraft.io/blog/bringing-electron-applications-to-linux produce snap with Element that freezes on run with this error.

FATAL:platform_shared_memory_region_posix.cc(255)] This is frequently caused by incorrect permissions on
 /dev/shm.  Try 'sudo chmod 1777 /dev/shm' to fix. 

I filled the issue with electron-builder electron-userland/electron-builder#5574 Not sure what else can I do.

@nduja
Copy link

nduja commented Jan 24, 2021

What do you think of taking an approach similar to the signal-desktop snap? They aren't actually building the electron app in the snap manifest, instead they're pulling down the latest .deb files and then repackaging that.

@abitrolly
Copy link

@nduja the electon-builder is the officially recommended way for building snaps https://snapcraft.io/docs/electron-apps so I only followed it. I will take look, thanks.

@ted-gould
Copy link

I've been using the, I guess unofficial Riot snap for a while, but it seems to be getting out-of-date. Noticeably it hasn't changed its name to Element. Though I think it is missing some video features as well.

@popey is there a PR for your snapcraft configuration that could be built on? (I didn't see one in the list) Could there be? 😄

@popey
Copy link

popey commented Feb 10, 2021

@ted-gould yeah, sorry the riot-web snap got behind. It actually was built from source, not a repack of the deb like signal. Unfortunately I got somewhat frustrated and burned out by the changes which made riot-web frequently fail to build, then the name change was the final straw. I just gave up in annoyance. I haven't even looked at riot/element since the name change. If people are having trouble building using electron builder, I'd recommend bringing it up on the snapcraft forum. https://forum.snapcraft.io/

@abitrolly
Copy link

@popey already reported here https://forum.snapcraft.io/t/electron-builder-produces-freezing-snaps/22328 with no resolution so far.

@tgr
Copy link

tgr commented Aug 20, 2022

There are now a few of these:

FWIW upstream element-desktop is on 1.11.3 now; 1.11.1 is 25 days old, 1.10.14 and 1.10.12 are both from this May, 1.6.0 is from May 2020.

So https://snapcraft.io/element-desktop seems to be the way to go. (Just tried, seems to work fine.)

Some guidance about these on https://element.io/get-started#linux-details would be nice - snap apps are far superior UX for the average user comapres to messing around with apt signing keys and whatnot. If using https://snapcraft.io/element-desktop is inadvisable for some reason, the official page should probably warn about that. Otherwise it should link to it as the primary means of installation, or at least mention it.

@kenvandine
Copy link

1.11.1 of the element-desktop snap is now in stable and 1.11.3 is building to edge right now.

@kristbaum
Copy link

Could the snapcraft folder be added to the official repo, and the snap be taken over by element staff? Or maybe be moved to the snapcrafters repo?
Most users would probably prefer that a highly sensitive app like element would come from a more official source. Nothing against @kenvandine ;)

@t3chguy
Copy link
Member

t3chguy commented Aug 22, 2022

@kristbaum unlikely on the front of it being maintained by the Element Web team, we don't have sufficient bandwidth or area knowledge to take this on at this time.

@popey
Copy link

popey commented Aug 22, 2022

I have updated the description of riot-web to indicate it's no longer maintained and that users should instead use element-desktop.

@t3chguy t3chguy transferred this issue from element-hq/element-web Apr 18, 2023
@santiagofn
Copy link

Hi team! There's an unofficial snap pkg available in the snap store: https://github.com/kenvandine/element-desktop. Might we merge its snap implementation here? Maybe myself or @kenvandine could help with the support but we'll have the benefit that the app will be official.

@kenvandine
Copy link

kenvandine commented Apr 20, 2023 via email

@t3chguy
Copy link
Member

t3chguy commented Apr 21, 2023

I don't think we should take in a package that we can't self maintain push come to shove, so unless someone from the web team with snap packaging experience is willing to step up and take the reigns this is better remaining as it is

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

17 participants