Skip to content

Deploy dependencies in AppImage #8562

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

Open
wants to merge 6 commits into
base: dev
Choose a base branch
from

Conversation

Samueru-sama
Copy link
Contributor

@Samueru-sama Samueru-sama commented May 23, 2025

fixes #7967 and likely other similar issues.

So far Zen has just used the portable tarball build repacked as an AppImage, while this is usually good enough™ It means that the AppImage can't really work everywhere since the portable tar build depends on the host glibc.

These changes add the needed dependencies to guaranteed operation anywhere, such as musl distros and distros as old as ubuntu 14.04.


Considerations:

This change will break integration with appimaged and appimagelauncher since I switched the AppImage to dwarfs to reduce the final size (now 180 MiB). I could go back to squashfs but that makes the AppImage +250 MiB and I don't think it is worth it 👀

Note that this is unrelated to the infamous execv error people will still be able to launch it even on appimagelauncher, just that integration is broken due to it not being able to read dwarfs.

AM, dbin, Gearlever, soar, etc already support dwarfs so it is not an issue there.

Note I'm not able to figure out how the CI works, so I'm not sure if I made a mistake in the steps. 😅 I did testing here instead by using the tarball directly.

Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
sharun automatically sets `PATH` to include the `bin` dir. 

Zen binary is now in `bin/zen` instead of the top level of the AppDir

Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
@Samueru-sama Samueru-sama requested a review from mr-cheffy May 23, 2025 22:29
@dosubot dosubot bot added the size:M This PR changes 30-99 lines, ignoring generated files. label May 23, 2025
@Samueru-sama Samueru-sama changed the title Musl Deploy dependencies in AppImage May 23, 2025
@dosubot dosubot bot added the Improvement label May 23, 2025
Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
@dosubot dosubot bot added the lgtm This PR has been approved by a maintainer label May 23, 2025
@mr-cheffy
Copy link
Contributor

Please run npm run pretty

@Samueru-sama
Copy link
Contributor Author

Please run npm run pretty

I'm not sure how to do that 😅

@JosueGalRe
Copy link
Member

@Samueru-sama in the console run "npm run pretty"

Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
@Samueru-sama
Copy link
Contributor Author

@Samueru-sama in the console run "npm run pretty"

First time I use npm, hopefully it is all ok now.

Signed-off-by: Samuel <36420837+Samueru-sama@users.noreply.github.com>
@xlc-dev
Copy link

xlc-dev commented Jun 24, 2025

bumping thread to see if this can be merged. Is everything ok with this PR @mr-cheffy? I'd appreciate it very much if this gets to main

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Improvement lgtm This PR has been approved by a maintainer size:M This PR changes 30-99 lines, ignoring generated files.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Appimage does not work on distros that depend on musl instead of glibc
4 participants