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

aarch64 #10

Open
niccokunzmann opened this issue Mar 26, 2024 · 4 comments
Open

aarch64 #10

niccokunzmann opened this issue Mar 26, 2024 · 4 comments

Comments

@niccokunzmann
Copy link

When I look at the code, I wonder how to build an arm build of the flutter app.

cd build/linux/x64/release/bundle || exit

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:

  • build both architectures
  • create an archive for both architectures
  • submit a build for these

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:

@Merrit
Copy link
Owner

Merrit commented Mar 26, 2024

The example is only for x64, yes. I haven't ever built for aarch64 so I don't have experience there.

Is there a way in the manifest to download a different archive depending on the build architecture?

I don't know about that, you'd be best to ask the Flatpak/FlatHub folks there.

Also, aarch64 builds are "nice to have" in that they are supported already so "why not?", but having it is not a requirement for submission to FlatHub - the reviewer was just asking if it could be added.

Building from source is problematic for Flutter because it requires network access to get dependencies during the build phase, and the Flatpak build environment forbids network access. There is a related Flutter issue tracking that.

@jcleng
Copy link

jcleng commented Apr 5, 2024

flatpak is support arm, but flutter maybe not support arm, flutter linux release

@niccokunzmann
Copy link
Author

Yes, there seems not to be an official release. However, looking at the web, people build the flutter sdk on the Raspberry Pi themselves and then use that to compile and it seems to work.

@jcleng
Copy link

jcleng commented Apr 9, 2024

ye it has

uname -a
Linux localhost 6.1.77-0-virt #1-Alpine SMP Wed, 07 Feb 2024 18:04:21 +0000 aarch64 Linux

apk search flutter
flutter-3.19.4-r0
flutter-common-3.19.4-r0
flutter-desktop-3.19.4-r0
flutter-developer-3.19.4-r0
flutter-glfw-3.19.4-r0
flutter-gtk-3.19.4-r0
flutter-tool-3.19.4-r0
flutter-tool-developer-3.19.4-r0

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

3 participants