Skip to content

[Feature Request] Update the AppImage build and make it truly universal #125

Open

Description

@nubesurrealista

I think we should move forward and take a modern approach to appimages, which would basically be discarding the classic approach and betting on a new rising standard.

Take a look at: https://github.com/pkgforge-dev/TEMPLATE-AppImage

Istead of using FUSE and classic dependencies we could use sharun and other dependencies as shown in that template

This approach works, and it works very well; it is lightweight, it is efficient, and most importantly: it is more universal than the current appimage. With this, we would solve issue #117 without having to add an additional build or think about a flatpak for the time being; it would be a minimum-effort solution that could favor the adoption of our software.

I offer to try, although the task might be beyond me, idk, so, I will accept any help.


Examples where this works

This can be seen in several appimages of the "Portable Linux Apps" project like:

And it can even be seen officially in projects like PPSSPP


I think this is a natural step we should take, although I'm really not entirely sure if we can do it "with minimum effort" hehe

More Info:

https://github.com/pkgforge-dev/Anylinux-AppImages

Activity

  1. nubesurrealista commented on Mar 31, 2026

    @nubesurrealista
    CollaboratorAuthor

    After thinking about it and looking at the situation, honestly my proposal is solving a problem we don't even have, I think we can just improve the current AppImages and musl support without having to make a massive change like this.

  2. CrystalSplitter commented on Apr 1, 2026

    @CrystalSplitter
    Collaborator

    Quick question, would it be easier on musl systems with flatpaks? Like, if this was available on flathub, would it be easier for folks using Alpine or other musl systems?

  3. nubesurrealista commented on Apr 2, 2026

    @nubesurrealista
    CollaboratorAuthor

    Quick question, would it be easier on musl systems with flatpaks? Like, if this was available on flathub, would it be easier for folks using Alpine or other musl systems?

    Well, probably yeah, and I think it's the most viable way because it doesn't mean just focusing on musl, musl compatibility if we have a flatpak would just be a small win along the way without necessarily being the end goal.

    Tbh a native package is always better and more compact than a flatpak and all its dependencies, but for musl it'd be ok

  4. Samueru-sama commented on Apr 29, 2026

    @Samueru-sama

    👀

  5. nubesurrealista commented on Apr 29, 2026

    @nubesurrealista
    CollaboratorAuthor

    👀

    @Samueru-sama Oh, hi!

    Do you think it'll work? What do you reckon?

    Tbh, I haven't gone deep enough into this and I don't think I'm clued up enough to do it easily, do you think that building the tarball and then using the Anylinux AppImages tools to package it up is a decent approach?

  6. Samueru-sama commented on Apr 29, 2026

    @Samueru-sama

    If this is an electron app all you have to do is get electron-builder to produce you a .deb or .tar.gz.

    Then you extract its contents on ./AppDir/bin and run quick-sharun ./AppDir/bin/*

    That's what every single appimage repo of electron apps we have does.

    And this is no unique to us, when you see flatpaks or snaps of electron apps they just do the same steps 😹

  7. CrystalSplitter commented on May 3, 2026

    @CrystalSplitter
    Collaborator

    Thank you for the advice! It's very helpful.

    If we want to make a github action that does this for us, I'd happily set that up. @nubesurrealista, you'll have to do the actual local testing and give me the set of shell commands to do this. I'm uncertain if I'll be able to run these executables even if I do everything right.

  8. nubesurrealista commented on May 9, 2026

    @nubesurrealista
    CollaboratorAuthor

    @Samueru-sama Silly question but, do I need a glibc Linux to create an AnyLinux appImage? for local testing I only have a musl system, Alpine Linux, my main OS and the only one I use tbh

  9. Samueru-sama commented on May 9, 2026

    @Samueru-sama

    @Samueru-sama Silly question but, do I need a glibc Linux to create an AnyLinux appImage? for local testing I only have a musl system, Alpine Linux, my main OS and the only one I use tbh

    You can make the appimage on alpine but I do not recommend that

    You will have broken hardware acceleration with nvidia users, and it is not like they can use nouveau since installing the prop nvidia driver disables the nouveau kernel module.

    Also you really need electron builder to give you a .deb or .tar.gz here, I don't think it supports musl.

  10. nubesurrealista commented on May 11, 2026

    @nubesurrealista
    CollaboratorAuthor

    Well, I cloned the Anylinux template and adapted it to compile our stuff, it's not perfect, it's a bit hacky, but I managed to generate an artifact. An AppImage that's actually universal, our regular appimage is around 115mb I think, and this one is 125, considering it packs more stuff, it's not really a big increase. Pros? it runs on musl, we can integrate it into CI with small tweaks, it's predictable and modern, cons? mmmm, I guess sometimes and in certain contexts, and depending on the hardware, it could use up more resources (cpu/ram) than the normal appimage, but from what I understand that's rare and only happens in setups like mine where my machine has some limitations, the average user shouldn't notice any difference, right @Samueru-sama ? Though in my case the resource usage feels pretty much the same as my personal native build, I don't notice any difference, the usage is decent, it runs smooth. The locales, it'll be in English by default on a musl system, but luckily our app has a language selector. This isn't final or anything, just a proof of concept, @CrystalSplitter please take a look when you can or if you can compare both appimages in your environment and see how it works for you.

    Also, if you want to check out how we could integrate this, we're currently using two scripts, one that pulls the dependencies or compiles what's needed, another that creates an appimage, and it all comes together in a workflow. Links:

    Also, now they're offering their own Arch Linux Docker image with basic dependencies already installed, and they have their own actions, which would make it super easy to integrate into our CI. Tbh, I think the only random part would be building locally, idk how we could include that in our build guide since it seems like the best experience is using CI, Docker, and all that.

  11. nubesurrealista commented on May 11, 2026

    @nubesurrealista
    CollaboratorAuthor

    I'm no expert at this but I'm down to maintain it, though of course any ideas, fixes, modifications, are totally welcome, the goal is, if everyone on the project agrees, to integrate this into our repo and put the process in our CI and effectively replace the standard AppImage, but for now it'll be in a separate repo for testing

  12. Samueru-sama commented on May 11, 2026

    @Samueru-sama

    I guess sometimes and in certain contexts, and depending on the hardware, it could use up more resources (cpu/ram) than the normal appimage, but from what I understand that's rare and only happens in setups like mine where my machine has some limitations, the average user shouldn't notice any difference, right @Samueru-sama ?

    In your specific case because you have a very old gpu that is no longer supported by mesa, you only have softpipe as the opengl renderer.

    Mesa has another software renderer called llvmpipe but this one is not ship in our builds of mesa due to it linking to LLVM (massive library).

    That means apps will lag more when using softpipe instead of llvmpipe, but really neither should be daily driven. softpipe does not really use more resources than llvmpipe though, it is single threaded though so you will see one core being hammered instead of several.


    Now checking the appimage:

    • Releases are broken due to this line being changed to include *.AppImage*, this causes a metadata file to not be uploaded and the release action to fail.

    • You really want to use ./AppDir/bin/* here instead, since electron bundles ship support binaries and libraries that are not being deployed right now.

    Besides that good job.

  13. nubesurrealista commented on May 11, 2026

    @nubesurrealista
    CollaboratorAuthor

    I guess sometimes and in certain contexts, and depending on the hardware, it could use up more resources (cpu/ram) than the normal appimage, but from what I understand that's rare and only happens in setups like mine where my machine has some limitations, the average user shouldn't notice any difference, right @Samueru-sama ?

    In your specific case because you have a very old gpu that is no longer supported by mesa, you only have softpipe as the opengl renderer.

    Mesa has another software renderer called llvmpipe but this one is not ship in our builds of mesa due to it linking to LLVM (massive library).

    That means apps will lag more when using softpipe instead of llvmpipe, but really neither should be daily driven. softpipe does not really use more resources than llvmpipe though, it is single threaded though so you will see one core being hammered instead of several.

    Now checking the appimage:

    * Releases are broken due to [this line](https://github.com/nubesurrealista/fluentflame-appimage-test/blob/fad9933823f881b3b52f20d3b622fcd2702d47c7/.github/workflows/appimage.yml#L33) being changed to include `*.AppImage*`, this causes a metadata file to not be uploaded and the release action to fail.
    
    * You really want to use `./AppDir/bin/*` [here](https://github.com/nubesurrealista/fluentflame-appimage-test/blob/fad9933823f881b3b52f20d3b622fcd2702d47c7/make-appimage.sh#L16) instead, since electron bundles ship support binaries and libraries that are not being deployed right now.
    

    Besides that good job.

    Thank u very much!, the releases are working now: https://github.com/nubesurrealista/fluentflame-appimage-test/releases. I implemented what you told me, all fine now it seems

  14. Samueru-sama commented on May 11, 2026

    @Samueru-sama

    btw I forgot to mention, if you are already manually copying the .DirIcon and .desktop files to the AppDir you don't have to set the DESKTOPand ICON vars.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions