[go: nahoru, domu]

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

Add AppImage option to build and release a Flutter Linux app #7639

Open
bksubhuti opened this issue Oct 9, 2022 · 6 comments
Open

Add AppImage option to build and release a Flutter Linux app #7639

bksubhuti opened this issue Oct 9, 2022 · 6 comments
Assignees
Labels
act.question Relates to issues that writers need SME help dev.deployment Relates to deploying Flutter app section of Flutter.dev devos.Linux Relates to developing apps on the Linux platform e2-days Effort: < 5 days p2-medium Necessary but not urgent concern. Resolve when possible. st.blocked Issue cannot continue until another action completes

Comments

@bksubhuti
Copy link
bksubhuti commented Oct 9, 2022

What information is missing?

The only information about building a linux desktop app for public consumption is a snap.
My old app was an electron app. It was easy to build with electron-builder.

snapcraft for flutter is a different story:
Most people hate snaps and if you ever try to build a snap with snapcraft, you will hate them more.
The "just type snapcraft" is very misleading.
I tried building a snap several times and found out that it required 12 gb of space and also 3 or 4 gb of downloads.
If you have a slow connection it can take 45 minutes to 1 hour.
It makes a whole new ubuntu in order just to build a snap, and then after all of that it failed.
The Snapcraft discourse has little or no official support to help.

I spent many hours trying to make this work and could not.

How would you like us to fix this problem?

I came across this article after wasting lots of time on snaps
https://odilondamasceno.medium.com/creating-appimage-with-flutter-d19ef8b53158

In the article says the same thing: You thought you hated snaps until you started building one. Then you hated snaps even more.
There is a small change in the article needed (directory structure), but all else works fine.
It can be distributed on AppImage Hub

AppImages are the new thing.
AppImages are easy to build.
AppImages work on other Linux distributions and not just Ubuntu.

You need a page for:

Build and Release a Linux AppImage

After this experience and success with AppImage, I have decided not to release snaps.
I had snaps for the old app that this replaces and there are 36 apps installed.
I'm willing to bet that 95% of the users would prefer an AppImage.

@12people
Copy link

This, but for Flatpak too!

@bksubhuti
Copy link
Author

I would not mind releasing flatpak. anything is easier than snapcraft. I made a deb very easily too. Anything is easier than snapcraft. But AppImage is the new thing. Just like anything that competes with flutter is dead, snap and flatpak are dead compared to AppImage. in fact.. a new article was released today. Here: https://www.omgubuntu.co.uk/2022/10/appimagelauncher-install-on-ubuntu

@12people
Copy link

Don't get me wrong, I support documentation for both AppImages and Flatpaks.

I'm not sure where you get the idea that AppImage is the "new thing" and everything else is dead.

AppImage was released in 2004, Flatpak in 2015. And unlike AppImage, Flatpaks deal with security issues (with sandboxing being a core feature) as well as size optimization (through the use of shared runtimes). And Flatpaks are the preferred way of releasing apps on a number of popular distros, such as Fedora, SteamOS, and Pop!_OS.

@bksubhuti
Copy link
Author
bksubhuti commented Oct 10, 2022 via email

@12people
Copy link

Created one just today: #7641 :)

@danagbemava-nc danagbemava-nc added st.triage.triage-team Triage team reviewing and categorizing the issue p2-medium Necessary but not urgent concern. Resolve when possible. e2-days Effort: < 5 days os:Linux and removed st.triage.triage-team Triage team reviewing and categorizing the issue labels Oct 10, 2022
@atsansone atsansone added dev.deployment Relates to deploying Flutter app section of Flutter.dev a.get-started Relates to the Getting Started section of docs.flutter.dev devos.Linux Relates to developing apps on the Linux platform and removed os:Linux dev.deployment Relates to deploying Flutter app section of Flutter.dev labels May 26, 2023
@atsansone atsansone changed the title Build and Release a Linux AppImage Add AppImage option to build and release a Flutter Linux app Jun 5, 2023
@atsansone atsansone added dev.deployment Relates to deploying Flutter app section of Flutter.dev ltw-triage and removed a.get-started Relates to the Getting Started section of docs.flutter.dev a: install labels Jun 5, 2023
@atsansone
Copy link
Contributor

@jacob314 : Do we want to support creating AppImages?

@atsansone atsansone added act.question Relates to issues that writers need SME help st.blocked Issue cannot continue until another action completes labels Jun 5, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
act.question Relates to issues that writers need SME help dev.deployment Relates to deploying Flutter app section of Flutter.dev devos.Linux Relates to developing apps on the Linux platform e2-days Effort: < 5 days p2-medium Necessary but not urgent concern. Resolve when possible. st.blocked Issue cannot continue until another action completes
Projects
None yet
Development

No branches or pull requests

6 participants