Skip to content

Publish AppImage #6475

Closed
Closed

Description

@jrop

It would be convenient if Fish published an AppImage along with its other release artifacts.

My use-case for such a thing: It would be very useful to be able to curl an AppImage on a system that I do not have administrative access over, and start using fish-shell even there. The workflow looks like:

curl -LO <..>/fish.AppImage
chmod +x fish.AppImage
./fish.AppImage
... fish starts ...

If there is any interest in this, I can investigate putting together a PR that would build an AppImage.

Activity

  1. faho commented on Jan 6, 2020

    @faho
    Member

    Okay, most of this is already in place and I managed to make an appimage in ~10 minutes.

    The gist of it is:

    • You need a .desktop file and an icon, and the "linuxdeploy" program is quite strict about both. The categories have to be right and everything

    • You build fish like normal, but with CMAKE_INSTALL_PREFIX=/usr explicitly, then you install with DESTDIR=tempdir

    • Then you run linuxdeploy, in my case ./linuxdeploy-x86_64.AppImage --appdir tempdir --executable tempdir/usr/bin/fish --output appimage

    This pulls in all the libraries etc against which fish has been built and puts it into a squashfs that then forms the appimage. The resulting file is 30-50mb in size (I've seen both, dunno why exactly?) and can be executed immediately.

    It seems to pick up the config and such? It's not sandboxed, but $__fish_sysconf_dir and similar are set to something like "/tmp/.mount_fish-3ds1GPr/usr/etc/fish".

    Doing ldd /tmp/.mount_fish-3yvgdVf/usr/bin/fish reveals that it's copied over libncursesw.so.6 and libpcre2-32.so.0, but not libstdc++ or libc. I'm not entirely sure how wise that is or how well that works.

    Overall it seems quite simple to do, but I'm not sure how well it really works and if we want to add yet another item onto the release todo list.

  2. jrop commented on Jan 6, 2020

    @jrop
    Author

    @faho Thanks for being so responsive.

    Regarding exactly what makes it into the app image, perhaps it would be helpful to reference what NeoVim does. I have not opened up their AppImage, but it may be telling of what a good strategy is. Periodically I have found their AppImage useful.

    and if we want to add yet another item onto the release todo list.

    Perhaps the following is better suited to another ticket, but is this not something that could be automatically delegated to CI/CD? Are releases cut manually at the moment? These are all things I would potentially be willing to create PRs for.

  3. self-assigned this
    on Jan 7, 2020
  4. zanchey commented on Jan 7, 2020

    @zanchey
    Member

    A .desktop file would be useful for the various Linux distribution packages as well, so let's definitely do that.

    We ship three ways of installing on macOS, so I'm happy to take additional methods on other OSes. We did have a request for blessing a snap package (#3664), but the limited adoption of snap makes me less inclined to support it - flatpak is also probably reasonable to add.

  5. removed their assignment
    on Jan 7, 2020
  6. zanchey commented on Jan 7, 2020

    @zanchey
    Member

    OBS already supports building AppImages, so that's an easy win; you just need to create the right appimage.yml.

  7. added this to the fish-future milestone on Jan 7, 2020
  8. added a commit that references this issue on Jan 8, 2020
  9. jrop commented on Feb 2, 2020

    @jrop
    Author

    @zanchey I just tried to download the AppImage to test it, but I am unable to without a login (or so it would appear). Perhaps something is amiss with my phone (I am doing development from my phone this afternoon, perhaps I will try another device soon).

  10. removed this from the fish-future milestone on Feb 17, 2020
  11. 58 remaining items

  12. lengyijun commented on Apr 6, 2023

    @lengyijun
    Contributor

    oh, an appimage based on master(rust version) is quite useful to me !

  13. mliszcz commented on Apr 6, 2023

    @mliszcz

    @mliszcz Would you please add support for 3.6.1 (rust version) ?

    There is a 3.6.1 build here: https://github.com/mliszcz/fish-shell/releases/tag/fish-3.6.1-x86_64

    I'm sorry but right now I cannot allocate time for updating this repo to the rust version. Also I do not plan to make nightly releases from master - without proper automation and integration with the upstream fish repo it would take too much effort to maintain them. Besides, I really hope that fish maintainers will provide an official appimage by the time 3.7 is released.

    In the meantime perhaps you can try the releases from suse. There is the 'latest' appimage, but I don't know the version. Note that the last time I tried those, they didn't work well (e.g. were not loading my configuration files):
    https://download.opensuse.org/repositories/shells:/fish:/nightly:/master/AppImage/

  14. Justinzobel commented on May 2, 2024

    @Justinzobel

    Is the AppImage something you would consider releasing officially on the homepage for stable builds?

  15. faho commented on May 2, 2024

    @faho
    Member

    Appimages in general? Possibly. Tbh I've tried it a bit and I'm not a massive fan, I'd go for static builds (#10367).

    The current appimage, as it exists? No.

  16. probonopd commented on May 2, 2024

    @probonopd

    Why not a static binary inside an AppImage? That way you get the advantages of both.

  17. faho commented on May 2, 2024

    @faho
    Member

    Unfortunately, you don't: You still need to go through the appimage build process, and you still need libfuse to run it. And to link it statically you would have to use musl (glibc has an unavoidable crash), and so you would lose performance.

    It's closer to worst-of-both than best-of-both.

  18. probonopd commented on May 2, 2024

    @probonopd

    Well, everything has tradeoffs. The appimage build process would be extremely simple in this case, and isn't using musl libc a great thing? You are right about FUSE though, but isn't it available on every desktop system anyway? In any case, just wanted to mention that AppImage and static linking are not mutually exclusive.

  19. zanchey commented on May 2, 2024

    @zanchey
    Member

    The AppImage builds in OBS are weirdly busted; I've updated the config so that it least has the dependencies it needs, but it doesn't actually try to produce an image. The documentation at https://docs.appimage.org/packaging-guide/hosted-services/opensuse-build-service.html is what leads to this state. There's no documentation on https://openbuildservice.org/help/manuals/obs-user-guide/cha.obs.package_formats and a brief look through the source didn't yield any obvious takeaways.

    Flatpak is an option on OBS these days too.

  20. faho commented on May 2, 2024

    @faho
    Member

    isn't using musl glibc a great thing?

    For our purposes, musl is quite literally just slower. We'd use it if we have to, but only then because there's no upside.

    (sidenote it's "musl libc", glibc is the gnu one)

    You are right about FUSE though, but isn't it available on every desktop system anyway

    Fish doesn't just run on desktop systems. I'm talking about libfuse because I ran into a system where it wasn't installed, just on the systems I have lying around (and where I do run fish).

    In fact these sorts of builds are more geared to systems you rarely use, where it would be cool if you could just scp a binary. And you might not have root access, so installing a dependency kinda ruins the entire thing.

    The appimage build process would be extremely simple

    The alternative is to not have it at all, which is even simpler.

    In any case, just wanted to mention that AppImage and static linking are not mutually exclusive.

    Yes, and I'm saying that if you combine the two you end up with something worse than either alone.


    Flatpak is an option on OBS these days too.

    Note that flatpak requires more of a runtime than appimages, and is pretty heavy on sandboxing which won't work for us (a shell kinda needs full access to the system).

  21. probonopd commented on May 6, 2024

    @probonopd
  22. faho commented on Dec 13, 2024

    @faho
    Member

    Alright, we now have self-installable builds (#10367).
    To install fish, run

    cargo install --git https://github.com/fish-shell/fish-shell
    ~/.cargo/bin/fish

    or download pre-built statically linked versions from https://github.com/fish-shell/fish-shell/actions/workflows/staticbuild.yml - these are zips containing an x86_64 and an aarch64 build that should run on "any" linux, no dependency on libfuse or anything.

    I'm running those regularly for now, we could also offer them as an installation option on fishshell.com.

    Since I don't think there's anything appimages would improve here, I'm closing this.

  23. locked as resolved and limited conversation to collaborators on Dec 22, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions