News for hackers. Stuff that matters.
Re:Building Outer Wonders for Linux by jms55 on Saturday May 22, 2021 @11:39AM (#27247547)
I highly recommended flatpak for this. It provides an isolated build and runtime system, so you don't have issues with glib and such. And lots of common libraries come included in the runtime, including SDl2 I'm pretty sure. It works on any linux distro (that has flatpak installed, but there's a package available for pretty much any distro that doesn't already preinstall it). And as a bonus, you get sandboxing if you feel like setting that up.

I also have a Rust game, and I packaged it in a flatpak here (https://github.com/JMS55/sandbox/tree/master/flatpak). The main thing you want to look at is the .json manifest. The flatpak-cargo-generator.py script on the flatpak github takes a Cargo.lock, and outputs another flatpak manifest of third party dependency download links, so you don't need arbitrary internet access to build (a requirement for distributing on flathub), but you can ignore this if you're using itch.io.

Re:Building Outer Wonders for Linux by Arnavion on Saturday May 22, 2021 @01:02PM (#27248331)
>works on any linux distro (that has flatpak installed

Given that they were wrangling about not requiring an external libSDL dependency, it's unlikely they'll want to require an external flatpak dependency.

Re:Building Outer Wonders for Linux by jms55 on Saturday May 22, 2021 @01:51PM (#27248770)
I don't think it's a big deal, while libSDL is. If you dynamically linked to libSDL, you'd have to tell users "find your libSDL package (probably not called libSDL), install it, and then hope it's new enough / no bugs / etc. All the usual issues with dynamically linking to libraries that aren't under your control.

Flatpak is "We use the flatpak format, if you don't already have it, go to https://flatpak.org/setup/ and press your distro icon". Much more user friendly, and the hope is that flatpak becomes the standard way to distribute linux apps in the future anyways. Fedora already preinstalls flatpak, hopefully ubuntu and debian will follow (although that's unlikely since ubuntu has snap).