merrit / flutter_flatpak_example Goto Github PK
View Code? Open in Web Editor NEWAn example of how to package a Flutter application as a Flatpak for distribution on Linux, using the default counter example app.
An example of how to package a Flutter application as a Flatpak for distribution on Linux, using the default counter example app.
When I look at the code, I wonder how to build an arm build of the flutter app.
This example seems to be only x64. Do I read that right?
The flatpack action allows building for both platforms. I will have a look on how to achieve this.
It seems easy to me:
Something I need to figure out: Is there a way in the manifest to download a different archive depending on the build architecture?
See also:
Hi, and thank for this tutorial!
I followed your steps on multiple machines (even with different distros)
But when I try to install the app with
flatpak-builder --user --install --force-clean build-dir com.example.FlutterApp.json
and then launching it with flatpak run com.example.FlutterApp
I get the following error:
FlutterApp: /usr/lib/x86_64-linux-gnu/libc.so.6: version 'GLIBC_2.34' not found (required by FlutterApp)
instructions don't work.
$ flatpak-builder --force-clean build-dir com.example.FlutterApp.json
error: org.freedesktop.Sdk/x86_64/21.08 not installed
Failed to init: Unable to find sdk org.freedesktop.Sdk version 21.08
flatpak run com.example.FlutterApp
When opened using this command from terminal, the app opens and shows a blank screen.
The same happens when opened using desktop icon. But runs using flutter run command
tar -C build/linux/x64/release/bundle -cvf FlutterApp-Linux-Portable.tar.gz .
need to add an 'a' argument. The file ends in gz, but without that a, it will be a tar file.
Hi,
Thanks for creating this project, it's been very useful! I've run into a few questions setting it up through GitHub Actions and was hoping you'd be able to help.
How are you adding FlutterApp-Linux-Portable.tar.gz to the release, are you manually downloading it and then attaching it? If it's currently manual I assume we could use a upload-release-asset action to automate it?
How do you suggest handling the flatpak.yml workflow file when using two repos. Should the entire action run on the code repo or would it make more sense to run the build-flatpak job on the flathub repo? What's unclear is I don't see how FlutterApp.flatpak is used in the action, or is it just to test manually?
Hope you don't mind me creating an issue for questions.
Cheers
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.