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 support for Flutter #327

Open
emersion opened this issue Oct 14, 2022 · 10 comments
Open

Add support for Flutter #327

emersion opened this issue Oct 14, 2022 · 10 comments

Comments

@emersion
Copy link

Look at pubspec.lock and generate Flatpack builder sources from it.

@hfiguiere
Copy link
Collaborator

there is no flutter sdk, so there is no point having anything here.

@emersion
Copy link
Author

There is no Electron SDK either.

It should be possible to build a Flutter SDK extension.

@hfiguiere
Copy link
Collaborator

There is the electron base app which is the form the SDK has taken.

As for Flutter, well, pull request welcome. It currently has fundamental flow that prevent it from being done.

@refi64
Copy link
Collaborator

refi64 commented Oct 14, 2022

I was playing around with flatpak-pub-generator once a long time ago but never got too far into. That would honestly be the easy part though... Flutter's tools also assume they can download various libraries that would definitely have to be saved in advance. Not sure if that should go in the same tool or not, but it would definitely be the main "tricky" part of this.

There is the electron base app which is the form the SDK has taken.

It doesn't actually have Electron, so not really anything close to an actual SDK extension. We also have cpan & rubygems generators, but neither of those are in the runtime, only SDK...

@omars44
Copy link

omars44 commented Feb 21, 2023

@hfiguiere what do you mean by a flutter flaw ?

@hfiguiere
Copy link
Collaborator

it can't run from a read-only location.

@emersion
Copy link
Author

Running from a read-only location should work after running flutter precache.

@hfiguiere
Copy link
Collaborator

but if you expect this to be run in the SDK build, and it is designed to pull stuff out of the network, then it won't work.

Build is 100% offline.

@faveoled
Copy link

there is no flutter sdk, so there is no point having anything here.

Can't it be downloaded from the Google website?

@JanKoudijs
Copy link

Look at pubspec.lock and generate Flatpack builder sources from it.

That's what I have created. It's a part of flatpak-flutter, a tool that assists Flutter developers in the creation of a Flatpak manifest that builds the app from source while 100% offline.

The tool: https://github.com/TheAppgineer/flatpak-flutter

My published Flutter app: https://github.com/flathub/com.theappgineer.community_remote

Be aware that this project is very fresh. If any Flutter developer wants to give this a try and provide feedback, that would be appreciated (please use the projects GitHub for this).

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

No branches or pull requests

6 participants