rigs-of-rods icon indicating copy to clipboard operation
rigs-of-rods copied to clipboard

Add release on flathub.org (flatpak)

Open Darin755 opened this issue 4 months ago • 8 comments

The issues On Linux, the current install method is precarious at best as it involves downloading a random binary off of the internet. This is bad practice at best and at worst is asking for serious issues. What would be better is if there was a well supported way of installing on Linux.

What is Flatpak? Flatpak is a universal packaging format on Linux that implements a sandbox that each app runs in. This improves compatibility as well as isolates software in case of bad activity caused by malice or unusual bugs. Flatpak is becoming more and more popular and flathub is the main repo where most of the apps live.

How would one package this on Flathub? The general guide is here: https://docs.flathub.org/docs/for-app-authors/submission/

Essentially the game would need to be built in a way that is reproducible and the permissions would need to be figured out. I am very much not a Flatpak expert so apologies if this isn't enough information.

Darin755 avatar Feb 26 '24 00:02 Darin755

Hello,

I just so happen to also have been working with flatpaks for an unrelated project. ~I can look into this further, but don't expect a lot from me.~ @AnotherFoxGuy will have better insight into this than I.

For reference, we have 4 other ways to reliably install RoR:

  1. https://rigs-of-rods.itch.io/rigs-of-rods - Standalone zip
  2. https://snapcraft.io/rigs-of-rods - A snap package maintained by the ogre devs
  3. https://aur.archlinux.org/packages/rigsofrods - The AUR arch repo maintained by AFG
  4. itchio://install/351397 - Through the itch.io app, which may not be ideal for everyone

The website doesn't explicitly mention some of these options, I'll look into revising a part of this.

Zentro avatar Feb 26 '24 02:02 Zentro

@AnotherFoxGuy had some insights into this on Discord, I myself never came to contact with flat packs but the topic did come up several times.

ohlidalp avatar Mar 01 '24 07:03 ohlidalp

I believe the last time I tried to package for flatpak I ran into issues with the sandboxing that flatpak does I will try it again and see if I can get it running now

AnotherFoxGuy avatar Mar 19 '24 14:03 AnotherFoxGuy

Why not appimage? It's simpler. Latest RoR doesn't work on Arch Linux. Dependency issues... Appimage doesn't have these issues as it contains everything inside it.

ghost avatar Mar 26 '24 15:03 ghost

Most Linux users do not use Appimage. App images have a few problems most of them being updates and security. It would be better to use something that can do actual sandboxing and that has proper updates. It would be better to have a Debian repo if anything. I can setup a Debian container to run it in with minimal effort.

Darin755 avatar Mar 26 '24 17:03 Darin755

RoR doesn't get updates very often so updating isn't a problem at all. Flatpak is only option for security but damn I just want something simple that works for everyone. Appimage just works at every Linux distro. Not everyone uses Debian as it simply feels like Windows XP.

ghost avatar Mar 27 '24 02:03 ghost

Why not appimage? It's simpler.

The Linux build on itch.io is just a appimage, the only difference is that is not in a self-extracting zip

AnotherFoxGuy avatar Mar 27 '24 08:03 AnotherFoxGuy

I tried both stable and nightly/unstable versions of RoR. I downloaded these from itch.io and both of them gave me dependency errors. Appimage should contain all the required dependencies inside it.

ghost avatar Mar 27 '24 14:03 ghost