Jagex-launcher-nix: the official Jagex Launcher (Linux beta) packaged as a flake

Jagex released a native Linux launcher for OSRS. On NixOS it fails out of the box: the “Play Now” button downloads RuneLite.AppImage and executes it, and that doesn’t run here without appimage-run. I packaged it so I could stop using the Bolt launcher.

I’ve been working through Vimjoyer’s Nix map and wanted to package something I actually use day to day, so this is my first go at maintaining a package.

4 Likes

P.S: If you’re using appimageTools.wrapType2 you don’t need appimageTools.extract (in fact it leads to duplicated extraction work)!
See the documentation changes in this PR:

3 Likes

Hey, thanks for the pointer! I’ll drop the separate extract

I’m also experimenting on a branch with running nixpkgs runelite instead of the AppImage the launcher downloads, since that was asked for in jagex-launcher: init at 0.1.7 by Orbsa · Pull Request #547255 · NixOS/nixpkgs · GitHub. That one patches the bundle in postExtract, so if I’ve read the docs right it has to stay on wrapAppImage.

1 Like

Yep, although just to be clear, wrapAppImage is for when you are using manual extract (usually for postExtract), and wrapType2 with finalAttrs (and no manual extract) is what you should use for all your other AppImage-wrapping needs.

1 Like