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

How can i build an aarch64 version #175

Closed
hsinor opened this issue May 19, 2021 · 20 comments · Fixed by #265
Closed

How can i build an aarch64 version #175

hsinor opened this issue May 19, 2021 · 20 comments · Fixed by #265

Comments

@hsinor
Copy link

hsinor commented May 19, 2021

I only find release version of x86_64 and i686. I want build a AppImage for aarch64, what should i do?

@hsinor hsinor changed the title I want a version of aarch64 for build my AppImage use in aarch64 How can i build an aarch64 version May 20, 2021
hdclark pushed a commit to hdclark/DICOMautomaton that referenced this issue Jun 25, 2021
The AppImage generator I previously used currently does not support aarch64:
linuxdeploy/linuxdeploy#175 . Using appimagetool directly is more of a hassle, but possible
for aarch64.
@MatNieuw

This comment was marked as off-topic.

@lucasfernog
Copy link

I'm also interested in this. Can we change the workflow to do it?

@lucasfernog
Copy link

Would be closed by #189

@TheAssassin
Copy link
Member

#189 has never seen a reaction to the change requests, though.

Since I also need ARM binaries soon, I'll probably pick up that PR and improve it in the next weeks.

@lucasfernog
Copy link

Thanks!

@Korkman
Copy link

Korkman commented Jul 11, 2022

@TheAssassin Any update on this?

@K4CZP3R
Copy link

K4CZP3R commented Dec 13, 2022

Bump, any update?

@K4CZP3R
Copy link

K4CZP3R commented Dec 21, 2022

I was able to create docker image containing linuxdeploy which works on arm64: https://github.com/K4CZP3R/linuxdeploy-tauri-arm64

@GentleGhostCoder
Copy link

Cool, thanks, I'll test it right away :D

@dcarr45
Copy link

dcarr45 commented Feb 25, 2023

@K4CZP3R very new to this so my apologies, but I've produced the squashfs-root that's the output of the last RUN command in your Dockerfile sequence and I've been banging my head against the wall trying to produce the equivalent of linuxdeploy-aarch64.AppImage (the one that's not currently distributed).

I assume all the files I need are there in /executables of the resultant Docker container, but if you get a chance could you please clarify how one would produce the executable that'd match the usage of linuxdeploy-x86_64.AppImage? I'm trying to replace the missing arm64 executable that'd be called in this bundler script used by Tauri

@andy5995
Copy link

Duplicate of #108

@dcarr45
Copy link

dcarr45 commented Mar 1, 2023

I had some success just following the linuxdeploy:ci/build.sh and linuxdeploy-plugin-appimage:ci/build-appimage.sh in an arm64 Docker container - it got a little hairy due to the apparent circular dependency between those two builds where they each download the latest version of the other, but I was able to produce what appears to be a usable linuxdeploy-aarch64.AppImage

@TGP17
Copy link

TGP17 commented Aug 5, 2023

I had some success just following the linuxdeploy:ci/build.sh and linuxdeploy-plugin-appimage:ci/build-appimage.sh in an arm64 Docker container - it got a little hairy due to the apparent circular dependency between those two builds where they each download the latest version of the other, but I was able to produce what appears to be a usable linuxdeploy-aarch64.AppImage

@dcarr45 Can you provide the build instructions that worked for you?

@yusiwen
Copy link

yusiwen commented Oct 16, 2023

Any updates? Need arm64/aarch64 badly

@neildavis
Copy link

Offering potential help on this for armhf & aarch64. See my comment on #189

@TheAssassin
Copy link
Member

Just for the record, an ARM version is on the way. I'm just fiddling with the build process, but it's working locally already.

@TheAssassin
Copy link
Member

Build is working now. I need to clean the branch up and merge it into the main branch. I should be able to do it tonight.

@TheAssassin
Copy link
Member

It's done. Binaries are available. Feedback welcome!

@andy5995
Copy link

andy5995 commented Jan 12, 2024

@TheAssassin Thanks for completing this! I am finally getting around to trying it. I'm having a spot of trouble though.

./linuxdeploy-aarch64.AppImage: cannot execute binary file: Exec format error

I seem to recall an issue where you mentioned using sed to change a few bytes, which worked in another case for me, but I can't find it.

I'm trying it with a Dockerfile. Here's the workflow output

https://github.com/netpanzer/netpanzer/actions/runs/7499142351/job/20415397490#step:8:435

The actual workflow/yml file

And the Dockerfile

Of the 4 jobs in the workflow, the focal amd64 job is completing, and the two Jammy jobs (arm64 and amd64) don't use linuxdeploy (so those 2 are completing).

@andy5995
Copy link

@TheAssassin Thanks for completing this! I am finally getting around to trying it. I'm having a spot of trouble though.

./linuxdeploy-aarch64.AppImage: cannot execute binary file: Exec format error

I seem to recall an issue where you mentioned using sed to change a few bytes, which worked in another case for me, but I can't find it.

Found it. I also found the the dd method you mentioned in another ticket here.

I believe this is fixed in netpanzer/netpanzer@241a664

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

Successfully merging a pull request may close this issue.